diff --git a/dsBaseRpc/models/t_app_base.go b/dsBaseRpc/models/t_app_base.go new file mode 100644 index 00000000..46477eca --- /dev/null +++ b/dsBaseRpc/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/dsBaseRpc/models/t_app_identity.go b/dsBaseRpc/models/t_app_identity.go new file mode 100644 index 00000000..a36481ed --- /dev/null +++ b/dsBaseRpc/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/dsBaseRpc/models/t_app_position.go b/dsBaseRpc/models/t_app_position.go new file mode 100644 index 00000000..fc50bb97 --- /dev/null +++ b/dsBaseRpc/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/dsBaseRpc/models/t_app_range.go b/dsBaseRpc/models/t_app_range.go new file mode 100644 index 00000000..8072f281 --- /dev/null +++ b/dsBaseRpc/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/dsBaseRpc/models/t_app_stage.go b/dsBaseRpc/models/t_app_stage.go new file mode 100644 index 00000000..836c07db --- /dev/null +++ b/dsBaseRpc/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)"` +} diff --git a/dsBaseRpc/models/t_base_organization.go b/dsBaseRpc/models/t_base_organization.go index 70c1b1bb..a89431e9 100644 --- a/dsBaseRpc/models/t_base_organization.go +++ b/dsBaseRpc/models/t_base_organization.go @@ -11,7 +11,7 @@ type TBaseOrganization struct { MainSchoolType int32 `xorm:"not null default 1 comment('主校类型,1:普通校,2:主校,3:分校') INT(11)"` MainSchoolId string `xorm:"not null default '''' comment('如果是分校,所属主校的ID,如果是主校,是自己的ID,如果是分校,是主校ID,如果是普通校,也是自己的ID') CHAR(36)"` Xxbxlxm string `xorm:"not null default '''' comment('学校办学类型(学校专有属性)有字典') CHAR(3)"` - Szdcxlxm string `xorm:"not null default '''' comment('学校城乡类型(学校专有属性)有字典') CHAR(2)"` + Szdcxlxm string `xorm:"not null default '''' comment('学校城乡类型(学校专有属性)有字典') CHAR(3)"` Xxjbzm string `xorm:"not null default '''' comment('学校举办者(学校专有属性)有字典') CHAR(3)"` Fzr string `xorm:"not null default '''' comment('机构负责人ID(*一个单位只能有一个负责人)') CHAR(36)"` Fddbr string `xorm:"not null default '''' comment('机构法定代表人') VARCHAR(50)"`