master
huanghai 5 years ago
parent b16df2f041
commit e3dc99ee6f

@ -1,21 +1,26 @@
package models
import (
"time"
)
type TBaseClass struct {
ClassId string `xorm:"not null pk comment('班级ID') CHAR(36)"`
Bh int32 `xorm:"not null default 0 comment('班号') INT(11)"`
ClassCode string `xorm:"not null default '''' comment('班级编码 规则10位学校编码+4位入学年份+1位学段+3位班号 学段0:幼儿 1:小学 2:初中 3:高中 4职业 5高等') CHAR(18)"`
ClassName string `xorm:"not null default '''' comment('班级名称') VARCHAR(100)"`
ClassAlias string `xorm:"not null default '''' comment('班级别名') VARCHAR(100)"`
Rxnf int32 `xorm:"not null default 1990 comment('入学年份') index(fk_t_base_class_t_dm_stage_1) INT(11)"`
Rxjj int32 `xorm:"not null default 0 comment('入学季节') INT(11)"`
SchoolingLength int32 `xorm:"not null default 3 comment('学制') INT(11)"`
StageId string `xorm:"not null default '''' comment('所属学段ID') index(fk_t_base_class_t_dm_stage_1) CHAR(1)"`
TeacherId string `xorm:"not null default '''' comment('班主任ID') CHAR(36)"`
OrgId string `xorm:"not null default '''' comment('所在部门除职业和高等外都是0') CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('所在学校ID') index(fk_t_base_class_t_dm_stage_1) CHAR(36)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') index(fk_t_base_class_t_dm_stage_1) TINYINT(1)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('主校ID') CHAR(36)"`
ClassId string `xorm:"not null pk comment('班级ID') CHAR(36)"`
Bh int32 `xorm:"not null default 0 comment('班号') INT(11)"`
ClassCode string `xorm:"not null default '''' comment('班级编码 规则10位学校编码+4位入学年份+1位学段+3位班号 学段0:幼儿 1:小学 2:初中 3:高中 4职业 5高等') CHAR(18)"`
ClassName string `xorm:"not null default '''' comment('班级名称') VARCHAR(100)"`
ClassAlias string `xorm:"not null default '''' comment('班级别名') VARCHAR(100)"`
Rxnf int32 `xorm:"not null default 1990 comment('入学年份') index(fk_t_base_class_t_dm_stage_1) INT(11)"`
Rxjj int32 `xorm:"not null default 0 comment('入学季节') INT(11)"`
SchoolingLength int32 `xorm:"not null default 3 comment('学制') INT(11)"`
StageId string `xorm:"not null default '''' comment('所属学段ID') index(fk_t_base_class_t_dm_stage_1) CHAR(1)"`
TeacherId string `xorm:"not null default '''' comment('班主任ID') CHAR(36)"`
OrgId string `xorm:"not null default '''' comment('所在部门除职业和高等外都是0') CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('所在学校ID') index(fk_t_base_class_t_dm_stage_1) CHAR(36)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') index index(fk_t_base_class_t_dm_stage_1) TINYINT(1)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('主校ID') CHAR(36)"`
CreateTime time.Time `xorm:"not null default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
}

@ -23,6 +23,7 @@ type TBaseClassLog struct {
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('主校ID') CHAR(36)"`
CreateTime time.Time `xorm:"not null default ''0000-00-00 00:00:00'' comment('创建时间') TIMESTAMP"`
ActionPersonId string `xorm:"not null comment('操作人员ID') CHAR(36)"`
ActionIpAddress string `xorm:"not null default '''' comment('操作IP') VARCHAR(100)"`
ActionTime time.Time `xorm:"not null default 'current_timestamp()' comment('操作时间') TIMESTAMP"`

@ -1,32 +1,37 @@
package models
import (
"time"
)
type TBaseOrganization struct {
OrgId string `xorm:"not null pk comment('组织机构ID') CHAR(36)"`
OrgCode string `xorm:"not null default '''' comment('组织机构编码') index CHAR(30)"`
OrgName string `xorm:"not null default '''' comment('组织机构名称') index(org_name) VARCHAR(255)"`
ParentId string `xorm:"not null default '''' comment('上级部门ID单位填0') CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('所在单位ID') CHAR(36)"`
OrgType int32 `xorm:"not null default -1 comment('组织机构类型 1教育局 2学校 3部门 4院 5系 6专业 7教辅单位,8:大学区') index(org_type) INT(11)"`
EduAssistType int32 `xorm:"not null default 0 comment('教辅单位类型') INT(11)"`
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)"`
ManageOrgId string `xorm:"not null default '''' comment('上级管理单位ID*一个单位只能有一个上级管理单位)') CHAR(36)"`
DirectlyUnderType int32 `xorm:"not null default 0 comment('直属类型 1普通 2省直 3市直') INT(11)"`
Xxbbm string `xorm:"not null default '''' comment('学校办别(学校专有属性)有字典') CHAR(2)"`
Xxbxlxm string `xorm:"not null default '''' comment('学校办学类型(学校专有属性)有字典') CHAR(3)"`
Szdcxlxm string `xorm:"not null default '''' comment('学校城乡类型(学校专有属性)有字典') CHAR(2)"`
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)"`
Fddbrdh string `xorm:"not null default '''' comment('机构法定代表人电话') VARCHAR(50)"`
Address string `xorm:"not null comment('组织机构地址') VARCHAR(255)"`
Lxdh string `xorm:"not null default '''' comment('机构联系电话') VARCHAR(50)"`
OrgLng float32 `xorm:"not null default 0 comment('组织机构经度') FLOAT"`
OrgLat float32 `xorm:"not null default 0 comment('组织机构纬度') FLOAT"`
SortId int32 `xorm:"not null default 0 comment('排序号在获取信息时如果排序号大于9999前台不显示') INT(11)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 -1未启用 1启用') index(org_name) TINYINT(1)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
AreaCode string `xorm:"not null default '''' comment('所在行政区划码') index(org_type) CHAR(6)"`
OrgId string `xorm:"not null pk comment('组织机构ID') CHAR(36)"`
OrgCode string `xorm:"not null default '''' comment('组织机构编码') index CHAR(30)"`
OrgName string `xorm:"not null default '''' comment('组织机构名称') index(org_name) VARCHAR(255)"`
ParentId string `xorm:"not null default '''' comment('上级部门ID单位填0') CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('所在单位ID') CHAR(36)"`
OrgType int32 `xorm:"not null default -1 comment('组织机构类型 1教育局 2学校 3部门 4院 5系 6专业 7教辅单位,8:大学区') index(org_type) INT(11)"`
EduAssistType int32 `xorm:"not null default 0 comment('教辅单位类型') INT(11)"`
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)"`
ManageOrgId string `xorm:"not null default '''' comment('上级管理单位ID*一个单位只能有一个上级管理单位)') CHAR(36)"`
DirectlyUnderType int32 `xorm:"not null default 0 comment('直属类型 1普通 2省直 3市直 4中直') INT(11)"`
Xxbbm string `xorm:"not null default '''' comment('学校办别(学校专有属性)有字典') CHAR(2)"`
Xxbxlxm string `xorm:"not null default '''' comment('学校办学类型(学校专有属性)有字典') CHAR(3)"`
Szdcxlxm string `xorm:"not null default '''' comment('学校城乡类型(学校专有属性)有字典') CHAR(2)"`
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)"`
Fddbrdh string `xorm:"not null default '''' comment('机构法定代表人电话') VARCHAR(50)"`
Address string `xorm:"not null comment('组织机构地址') VARCHAR(255)"`
Lxdh string `xorm:"not null default '''' comment('机构联系电话') VARCHAR(50)"`
OrgLng float32 `xorm:"not null default 0 comment('组织机构经度') FLOAT"`
OrgLat float32 `xorm:"not null default 0 comment('组织机构纬度') FLOAT"`
SortId int32 `xorm:"not null default 0 comment('排序号在获取信息时如果排序号大于9999前台不显示') INT(11)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 -1未启用 1启用') index(org_name) TINYINT(1)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
AreaCode string `xorm:"not null default '''' comment('所在行政区划码') index(org_type) CHAR(6)"`
CreateTime time.Time `xorm:"not null default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
}

@ -34,6 +34,7 @@ type TBaseOrganizationLog struct {
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
AreaCode string `xorm:"not null default '''' comment('所在行政区划码') CHAR(6)"`
CreateTime time.Time `xorm:"not null default ''0000-00-00 00:00:00'' comment('创建时间') TIMESTAMP"`
ActionPersonId string `xorm:"not null comment('操作人员ID') CHAR(36)"`
ActionIpAddress string `xorm:"not null default '''' comment('操作IP') VARCHAR(100)"`
ActionTime time.Time `xorm:"not null default 'current_timestamp()' comment('操作时间') TIMESTAMP"`

@ -1,15 +1,20 @@
package models
import (
"time"
)
type TBaseParent struct {
PersonId string `xorm:"not null pk comment('家长ID') index(person_id) CHAR(36)"`
Xm string `xorm:"not null default '''' comment('家长姓名') VARCHAR(100)"`
Lxdh string `xorm:"not null default '''' comment('联系电话') index(person_id) VARCHAR(100)"`
StudentId string `xorm:"not null default '''' comment('对应的学生ID') index CHAR(36)"`
ClassId string `xorm:"not null default '''' comment('对应学生的所在班级ID') index CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('对应学生的所在学校ID') index CHAR(36)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('所在主校ID') CHAR(36)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') index(person_id) TINYINT(1)"`
PersonId string `xorm:"not null pk comment('家长ID') CHAR(36)"`
Xm string `xorm:"not null default '''' comment('家长姓名') VARCHAR(100)"`
Lxdh string `xorm:"not null default '''' comment('联系电话') index(i_lxdh) VARCHAR(100)"`
StudentId string `xorm:"not null default '''' comment('对应的学生ID') index CHAR(36)"`
ClassId string `xorm:"not null default '''' comment('对应学生的所在班级ID') index CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('对应学生的所在学校ID') index CHAR(36)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('所在主校ID') CHAR(36)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') index(i_lxdh) TINYINT(1)"`
CreateTime time.Time `xorm:"not null default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
}

@ -17,6 +17,7 @@ type TBaseParentLog struct {
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('所在主校ID') CHAR(36)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') TINYINT(1)"`
CreateTime time.Time `xorm:"not null default ''0000-00-00 00:00:00'' comment('创建时间') TIMESTAMP"`
ActionPersonId string `xorm:"not null comment('操作人员ID') CHAR(36)"`
ActionIpAddress string `xorm:"not null default '''' comment('操作IP') VARCHAR(100)"`
ActionTime time.Time `xorm:"not null default 'current_timestamp()' comment('操作时间') TIMESTAMP"`

@ -14,7 +14,7 @@ type TBaseStudent struct {
Mzm string `xorm:"not null default '''' comment('民族 (有字典)') CHAR(2)"`
Zzmmm string `xorm:"not null default '''' comment('政治面貌 (有字典)') CHAR(2)"`
Sfzjlxm string `xorm:"not null default '''' comment('身份证件类型代码 (有字典)') CHAR(1)"`
Sfzjh string `xorm:"not null default '''' comment('身份证件号') index(person_id) index VARCHAR(30)"`
Sfzjh string `xorm:"not null default '''' comment('身份证件号') index(person_id) index(sfzjh) VARCHAR(30)"`
Dszybz int32 `xorm:"not null default 1 comment('独生子女标志 -1不是 1是') INT(11)"`
Sqznbz int32 `xorm:"not null default -1 comment('随迁子女标志 -1不是 1是') INT(11)"`
Jcwgrysqznbz int32 `xorm:"not null default -1 comment('进城务工人员随迁子女标志 -1不是 1是') INT(11)"`
@ -23,10 +23,11 @@ type TBaseStudent struct {
Cjbz int32 `xorm:"not null default -1 comment('残疾标志 -1不是 1是') INT(11)"`
ClassId string `xorm:"not null default '''' comment('班级ID') index CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('学校ID') index CHAR(36)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 -1未启用 1启用') index(person_id) TINYINT(1)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 -1未启用 1启用') index(person_id) index(sfzjh) TINYINT(1)"`
StateId int32 `xorm:"not null default 1 comment('状态码') INT(11)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') index CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('所在主校ID') CHAR(36)"`
CreateTime time.Time `xorm:"not null default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
}

@ -30,6 +30,7 @@ type TBaseStudentLog struct {
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
MainSchoolId string `xorm:"not null default '''' comment('所在主校ID') CHAR(36)"`
CreateTime time.Time `xorm:"not null default ''0000-00-00 00:00:00'' comment('创建时间') TIMESTAMP"`
ActionPersonId string `xorm:"not null comment('操作人员ID') CHAR(36)"`
ActionIpAddress string `xorm:"not null default '''' comment('操作IP') VARCHAR(100)"`
ActionTime time.Time `xorm:"not null default 'current_timestamp()' comment('操作时间') TIMESTAMP"`

@ -15,7 +15,7 @@ type TBaseTeacher struct {
Mzm string `xorm:"not null default '''' comment('民族 (有字典)') CHAR(2)"`
Zzmmm string `xorm:"not null default '''' comment('政治面貌 (有字典)') CHAR(2)"`
Sfzjlxm string `xorm:"not null default '''' comment('身份证件类型代码 (有字典)') CHAR(1)"`
Sfzjh string `xorm:"not null default '''' comment('身份证件号') index(person_id) index VARCHAR(100)"`
Sfzjh string `xorm:"not null default '''' comment('身份证件号') index(person_id) index(sfzjh) VARCHAR(100)"`
Xlm string `xorm:"not null default '''' comment('学历 (有字典)') CHAR(2)"`
Xwm string `xorm:"not null default '''' comment('学位 (有字典)') CHAR(1)"`
Zcm string `xorm:"not null default '''' comment('职称 (有字典)') CHAR(1)"`
@ -24,9 +24,9 @@ type TBaseTeacher struct {
StageId string `xorm:"not null default '''' comment('主要任课学段 (有字典)') index CHAR(1)"`
SubjectId string `xorm:"not null default '''' comment('主要任课学科 (有字典)') index CHAR(2)"`
Gwzym string `xorm:"not null default '''' comment('岗位 (有字典)') CHAR(2)"`
Lxdh string `xorm:"not null default '''' comment('联系电话') index index(person_id_2) VARCHAR(100)"`
Dzxx string `xorm:"not null default '''' comment('电子信箱') index index(person_id_3) VARCHAR(100)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') index(bureau_id) index(org_id) index(person_id) index(person_id_2) index(person_id_3) TINYINT(1)"`
Lxdh string `xorm:"not null default '''' comment('联系电话') index(lxdh) index(person_id_2) VARCHAR(100)"`
Dzxx string `xorm:"not null default '''' comment('电子信箱') index(dzxx) index(person_id_3) VARCHAR(100)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 0未启用 1启用') index(bureau_id) index(dzxx) index(lxdh) index(org_id) index(person_id) index(person_id_2) index(person_id_3) index(sfzjh) TINYINT(1)"`
StateId int32 `xorm:"not null default 0 comment('教师状态码') INT(11)"`
BureauId string `xorm:"not null comment('所属单位(主)') index(bureau_id) CHAR(36)"`
OrgId string `xorm:"not null comment('所属部门(主)') index(org_id) CHAR(36)"`
@ -35,4 +35,5 @@ type TBaseTeacher struct {
CityCode string `xorm:"not null comment('所属市CODE') CHAR(6)"`
DistrictCode string `xorm:"not null comment('所属县区CODE') CHAR(6)"`
SortId int32 `xorm:"not null default 1 comment('在主部门的排序号') INT(11)"`
CreateTime time.Time `xorm:"not null default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
}

@ -36,6 +36,7 @@ type TBaseTeacherLog struct {
CityCode string `xorm:"not null comment('所属市CODE') CHAR(6)"`
DistrictCode string `xorm:"not null comment('所属县区CODE') CHAR(6)"`
SortId int32 `xorm:"not null default 1 comment('在主部门的排序号') INT(11)"`
CreateTime time.Time `xorm:"not null default ''0000-00-00 00:00:00'' comment('创建时间') TIMESTAMP"`
ActionPersonId string `xorm:"not null comment('操作人员ID') CHAR(36)"`
ActionIpAddress string `xorm:"not null default '''' comment('操作IP') VARCHAR(100)"`
ActionTime time.Time `xorm:"not null default 'current_timestamp()' comment('操作时间') TIMESTAMP"`

@ -5,7 +5,6 @@ type TBaseTeacherOrg struct {
PersonId string `xorm:"not null default '''' comment('人员ID') index CHAR(36)"`
BureauId string `xorm:"not null default '''' comment('所在单位ID') index CHAR(36)"`
OrgId string `xorm:"not null default '''' comment('所在部门ID') index CHAR(36)"`
Bzszdwbz int32 `xorm:"not null default 1 comment('编制所在单位标志 -1不是 1是') TINYINT(1)"`
BUse int32 `xorm:"not null default 1 comment('是否启用 -1未启用 1启用') TINYINT(1)"`
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`

@ -0,0 +1,34 @@
package models
import (
"time"
)
type TDataexData struct {
Id string `xorm:"not null pk comment('ID') VARCHAR(36)"`
SystemId string `xorm:"not null comment('数据提供系统ID【输入参数】') VARCHAR(36)"`
DatasourceId string `xorm:"not null comment('数据源ID【输入参数】') VARCHAR(36)"`
ProvinceId string `xorm:"default 'NULL' comment('省编码【GBT2260】') VARCHAR(6)"`
ProvinceName string `xorm:"default 'NULL' comment('省') VARCHAR(255)"`
CityId string `xorm:"default 'NULL' comment('地市编码【GBT2260】') VARCHAR(6)"`
CityName string `xorm:"default 'NULL' comment('地市') VARCHAR(255)"`
AreaId string `xorm:"default 'NULL' comment('县区编码【GBT2260】') VARCHAR(6)"`
AreaName string `xorm:"default 'NULL' comment('县区') VARCHAR(255)"`
BureauId string `xorm:"default 'NULL' comment('教育局ID') VARCHAR(36)"`
RegionId string `xorm:"default 'NULL' comment('大学区ID') VARCHAR(36)"`
MainId string `xorm:"default 'NULL' comment('主校ID') VARCHAR(36)"`
OrgId string `xorm:"not null comment('数据机构ID【输入参数】') VARCHAR(36)"`
OrgName string `xorm:"default 'NULL' comment('机构名称') VARCHAR(255)"`
OrgType int32 `xorm:"not null comment('机构类型') INT(11)"`
DeptId string `xorm:"default 'NULL' comment('部门ID') VARCHAR(36)"`
StageId string `xorm:"default 'NULL' comment('学段ID') VARCHAR(36)"`
GradeId string `xorm:"default 'NULL' comment('年级ID') VARCHAR(36)"`
ClassId string `xorm:"default 'NULL' comment('班级ID') VARCHAR(36)"`
DataId string `xorm:"not null comment('数据ID【输入参数】') VARCHAR(36)"`
DataContent string `xorm:"default 'NULL' comment('数据内容【Json格式输入参数】') LONGTEXT"`
FileUri string `xorm:"default 'NULL' comment('文件地址【文件交换】') VARCHAR(500)"`
BeginTime time.Time `xorm:"default 'NULL' comment('数据有效开始时间') DATETIME"`
EndTime time.Time `xorm:"default 'NULL' comment('数据有效结束时间【默认 9999-01-01 00:00:00】') DATETIME"`
DelFlag int32 `xorm:"not null default -1 comment('删除标志【默认-11删除-1正常输入参数】') INT(11)"`
EnableFlag int32 `xorm:"not null default 1 comment('有效标志【默认11有效-1无效数据】') INT(11)"`
}

@ -7,11 +7,10 @@ import (
type TDataexDataaccess struct {
Id string `xorm:"not null pk comment('ID') VARCHAR(36)"`
DatasourceId string `xorm:"not null comment('数据源ID') index VARCHAR(36)"`
DatasourceCode string `xorm:"default 'NULL' VARCHAR(255)"`
ConsumeSystemid string `xorm:"not null comment('数据使用系统ID') index VARCHAR(36)"`
QueryFlag int32 `xorm:"not null default 1 comment('可查【1-1否】') INT(11)"`
DataaddFlag int32 `xorm:"not null default -1 comment('可增') INT(11)"`
DatasetFlag int32 `xorm:"not null default -1 comment('可改') INT(11)"`
DatadelFlag int32 `xorm:"not null default -1 comment('可删') INT(11)"`
SetFlag int32 `xorm:"not null default -1 comment('可修改【1-1否】') INT(11)"`
ConsumeType int32 `xorm:"not null comment('使用数据范围【1本机构2本机构以及下属机构-1不限制】') INT(11)"`
ConsumeOrgid string `xorm:"not null comment('使用数据机构ID【-1不限制】') index VARCHAR(36)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`

@ -8,14 +8,12 @@ type TDataexDatasource struct {
Id string `xorm:"not null pk comment('数据源ID') VARCHAR(36)"`
SystemId string `xorm:"not null comment('数据提供系统ID【外键】') index VARCHAR(36)"`
DatasourceName string `xorm:"not null comment('数据源名称') VARCHAR(100)"`
DatasourceCode string `xorm:"not null comment('数据源编码') VARCHAR(8)"`
DatasourceCode string `xorm:"not null comment('数据源编码') VARCHAR(36)"`
DatasourceDetail string `xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)"`
DataaddFlag int32 `xorm:"not null default 1 comment('可增【1-1否】') INT(11)"`
DatasetFlag int32 `xorm:"not null default 1 comment('可改') INT(11)"`
DatadelFlag int32 `xorm:"not null default 1 comment('可删') INT(11)"`
ColectFlag int32 `xorm:"not null default 1 comment('可汇集') INT(11)"`
SetFlag int32 `xorm:"not null default 1 comment('可修改【1-1否】') INT(11)"`
CollectFlag int32 `xorm:"not null default 1 comment('可汇集【1-1否】') INT(11)"`
ProvideType int32 `xorm:"not null comment('提供数据范围【1本机构2本机构以及下属机构-1不限制】') INT(11)"`
ProvideOrgid string `xorm:"not null comment('提供数据机构ID【-1不限制】') index VARCHAR(36)"`
ProvideOrgid string `xorm:"not null comment('提供数据机构ID【-1默认根机构】') index VARCHAR(36)"`
DatastoreType int32 `xorm:"not null comment('数据存储类型【1DB2ES3Kafka】') INT(11)"`
DicId string `xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`

@ -0,0 +1,20 @@
package models
import (
"time"
)
type TDataexError struct {
Id string `xorm:"not null pk comment('ID') VARCHAR(36)"`
SystemId string `xorm:"not null comment('数据提供系统ID【输入参数】') VARCHAR(36)"`
DatasourceId string `xorm:"not null comment('数据源ID【输入参数】') VARCHAR(36)"`
OrgId string `xorm:"not null comment('数据机构ID【输入参数】') VARCHAR(36)"`
DataId string `xorm:"not null comment('数据ID【输入参数】') VARCHAR(36)"`
DataContent string `xorm:"default 'NULL' comment('数据内容【Json格式输入参数】') LONGTEXT"`
FileUri string `xorm:"default 'NULL' comment('文件地址【文件交换】') VARCHAR(500)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`
ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"`
DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"`
EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)"`
DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-11删除-1正常】') INT(11)"`
}

@ -0,0 +1,20 @@
package models
import (
"time"
)
type TDataexGbt2260 struct {
Id string `xorm:"not null comment('区域ID') VARCHAR(36)"`
AreaName string `xorm:"not null comment('区域名称') VARCHAR(255)"`
AreaCode string `xorm:"not null pk comment('区域编码【国标】') VARCHAR(255)"`
AreaType int32 `xorm:"not null comment('区域类型【234区】') INT(11)"`
AreaType2 int32 `xorm:"default NULL comment('类型2【1行政区2开发区】') INT(11)"`
ParentId string `xorm:"not null comment('父亲节点ID') VARCHAR(36)"`
ShortName string `xorm:"default 'NULL' comment('区域简称') VARCHAR(255)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`
ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"`
DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"`
DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-11删除-1正常】') INT(11)"`
EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)"`
}

@ -7,7 +7,7 @@ import (
type TDataexLinksystem struct {
Id string `xorm:"not null pk comment('系统ID') VARCHAR(36)"`
SystemName string `xorm:"not null comment('系统名称') VARCHAR(100)"`
SystemCode string `xorm:"default ''NULL'' comment('系统编码') VARCHAR(8)"`
SystemCode string `xorm:"not null default ''NULL'' comment('系统编码【可读的缩写平台内统一使用code】') VARCHAR(36)"`
SystemType int32 `xorm:"not null comment('系统类型【1基础数据、2管理平台、3资源平台、4学科工具】') INT(11)"`
SystemKey string `xorm:"not null comment('系统密钥【必须保密】') VARCHAR(36)"`
CollectFlag int32 `xorm:"not null default -1 comment('数据汇集标志【默认-11启动汇集-1关闭汇集】') INT(11)"`

@ -5,14 +5,36 @@ import (
)
type TDataexOrgtree struct {
Id string `xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)"`
OrgName string `xorm:"not null comment('机构名称') VARCHAR(100)"`
OrgType int32 `xorm:"not null comment('机构类型【1教育局、2学校、3教辅、4其他】') INT(11)"`
ParentId string `xorm:"default ''NULL'' comment('父节点ID') VARCHAR(36)"`
CatId string `xorm:"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`
ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"`
DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"`
DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-11删除-1正常】') INT(11)"`
EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)"`
Id string `xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)"`
OrgName string `xorm:"not null comment('机构名称') VARCHAR(100)"`
OrgType int32 `xorm:"not null comment('机构类型【1教育局、2学校、3教辅单位、4大学区、5部门、6、主校7、学段、8年级、9班级】') INT(11)"`
SchoolType string `xorm:"default '''' comment('
111
211
218
311
312
321
341
342
345
361
365
411
415
426广
514
933') VARCHAR(3)"`
ParentId string `xorm:"not null default ''NULL'' comment('父节点ID') VARCHAR(36)"`
CatId string `xorm:"default 'NULL' comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)"`
ProvinceId string `xorm:"default 'NULL' comment('省编码') VARCHAR(6)"`
CityId string `xorm:"default 'NULL' comment('地市编码') VARCHAR(6)"`
AreaId string `xorm:"default 'NULL' comment('县区编码') VARCHAR(6)"`
LinksystemId string `xorm:"default 'NULL' comment('源业务系统') VARCHAR(36)"`
LinkId string `xorm:"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`
ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"`
DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"`
DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-11删除-1正常】') INT(11)"`
EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)"`
}

@ -6,4 +6,5 @@ type TJoinApp struct {
AppSecret string `xorm:"not null comment('AppSecret') VARCHAR(128)"`
AppName string `xorm:"not null comment('系统名称') VARCHAR(255)"`
RedirectUri string `xorm:"not null comment('回调地址') VARCHAR(1024)"`
LogoutUri string `xorm:"not null comment('退出地址') VARCHAR(1024)"`
}

@ -0,0 +1,21 @@
package models
import (
"time"
)
type TReportSqlquery struct {
Id string `xorm:"not null pk comment('查询ID') VARCHAR(36)"`
QueryName string `xorm:"not null comment('查询名称') VARCHAR(50)"`
QueryCode string `xorm:"not null comment('查询编码') VARCHAR(50)"`
QuerySql string `xorm:"not null comment('查询SQL') VARCHAR(4000)"`
JoinItem string `xorm:"default 'NULL' comment('关联查询字段名称') VARCHAR(255)"`
SystemId string `xorm:"not null comment('接入系统ID') index VARCHAR(36)"`
DatasourceId string `xorm:"not null comment('数据源ID') index VARCHAR(36)"`
PublicFlag int32 `xorm:"not null comment('数据公开标志【1公开-1保密】') INT(255)"`
CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"`
ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"`
DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"`
DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-11删除-1正常】') INT(11)"`
EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)"`
}

@ -0,0 +1,18 @@
package models
import (
"time"
)
type TSysLoginpersonLog struct {
IdentityId int32 `xorm:"not null comment('人员身份') INT(11)"`
PersonId string `xorm:"not null comment('人员ID') CHAR(36)"`
LoginName string `xorm:"not null comment('登录名') VARCHAR(255)"`
IpAddress string `xorm:"not null comment('登录IP') VARCHAR(255)"`
LoginTime time.Time `xorm:"not null default 'current_timestamp()' comment('登录时间') TIMESTAMP"`
ProvinceCode string `xorm:"not null comment('省CODE') VARCHAR(255)"`
CityCode string `xorm:"not null comment('市CODE') VARCHAR(255)"`
DistrictCode string `xorm:"not null comment('县区CODE') VARCHAR(255)"`
BureauId string `xorm:"not null comment('单位ID') CHAR(36)"`
LoginState int32 `xorm:"not null comment('登录成功还是失败') INT(255)"`
}
Loading…
Cancel
Save