From fb33c72f3c46214b8387d6c32aa30ae873e90397 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Mon, 24 Aug 2020 10:49:19 +0800 Subject: [PATCH] 'commit' --- dsSso/models/t_app_base.go | 14 ++++++++++++++ dsSso/models/t_app_identity.go | 6 ++++++ dsSso/models/t_app_position.go | 6 ++++++ dsSso/models/t_app_range.go | 6 ++++++ dsSso/models/t_app_stage.go | 6 ++++++ 5 files changed, 38 insertions(+) create mode 100644 dsSso/models/t_app_base.go create mode 100644 dsSso/models/t_app_identity.go create mode 100644 dsSso/models/t_app_position.go create mode 100644 dsSso/models/t_app_range.go create mode 100644 dsSso/models/t_app_stage.go diff --git a/dsSso/models/t_app_base.go b/dsSso/models/t_app_base.go new file mode 100644 index 00000000..46477eca --- /dev/null +++ b/dsSso/models/t_app_base.go @@ -0,0 +1,14 @@ +package models + +type TAppBase struct { + AppId string `xorm:"not null pk comment('系统ID') CHAR(36)"` + AppCode string `xorm:"not null comment('系统编码') VARCHAR(50)"` + AppName string `xorm:"not null comment('系统名称') VARCHAR(100)"` + AccessKey string `xorm:"not null comment('AK') CHAR(20)"` + SecretKey string `xorm:"not null comment('SK') CHAR(26)"` + AppUrl string `xorm:"default 'NULL' comment('系统集成页面调用地址') VARCHAR(1024)"` + AppIcon string `xorm:"default 'NULL' comment('系统图标的路径') VARCHAR(1024)"` + RedirectUri string `xorm:"default 'NULL' comment('统一认证回调地址') VARCHAR(1024)"` + LogoutUri string `xorm:"default 'NULL' comment('统一认证登出地址') VARCHAR(1024)"` + BUse int32 `xorm:"not null comment('是否可用 -2:不可用 1:可用') TINYINT(1)"` +} diff --git a/dsSso/models/t_app_identity.go b/dsSso/models/t_app_identity.go new file mode 100644 index 00000000..a36481ed --- /dev/null +++ b/dsSso/models/t_app_identity.go @@ -0,0 +1,6 @@ +package models + +type TAppIdentity struct { + AppId string `xorm:"not null pk comment('系统ID') index CHAR(36)"` + IdentityId int32 `xorm:"not null pk comment('身份ID') INT(11)"` +} diff --git a/dsSso/models/t_app_position.go b/dsSso/models/t_app_position.go new file mode 100644 index 00000000..fc50bb97 --- /dev/null +++ b/dsSso/models/t_app_position.go @@ -0,0 +1,6 @@ +package models + +type TAppPosition struct { + AppId string `xorm:"not null pk comment('系统ID') index CHAR(36)"` + PositionId string `xorm:"not null pk comment('职务ID,所有职务可用:-1') CHAR(36)"` +} diff --git a/dsSso/models/t_app_range.go b/dsSso/models/t_app_range.go new file mode 100644 index 00000000..8072f281 --- /dev/null +++ b/dsSso/models/t_app_range.go @@ -0,0 +1,6 @@ +package models + +type TAppRange struct { + AppId string `xorm:"not null pk comment('系统ID') CHAR(36)"` + RangeCode string `xorm:"not null pk comment('行政区划码或单位ID') VARCHAR(36)"` +} diff --git a/dsSso/models/t_app_stage.go b/dsSso/models/t_app_stage.go new file mode 100644 index 00000000..836c07db --- /dev/null +++ b/dsSso/models/t_app_stage.go @@ -0,0 +1,6 @@ +package models + +type TAppStage struct { + AppId string `xorm:"not null pk comment('系统ID') index CHAR(36)"` + StageId int32 `xorm:"not null pk comment('学段ID,所有学段可用:-1') INT(11)"` +}