master
huanghai 5 years ago
parent 8908c3310f
commit 63ba0bec51

@ -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)"`
}

@ -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)"`
}

@ -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)"`
}

@ -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)"`
}

@ -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)"`
}

@ -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)"`

Loading…
Cancel
Save