diff --git a/dsBaseRpc/models/t_base_class.go b/dsBaseRpc/models/t_base_class.go index 267bf644..bd080f9d 100644 --- a/dsBaseRpc/models/t_base_class.go +++ b/dsBaseRpc/models/t_base_class.go @@ -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"` } diff --git a/dsBaseRpc/models/t_base_class_log.go b/dsBaseRpc/models/t_base_class_log.go index ab164319..f5f7094c 100644 --- a/dsBaseRpc/models/t_base_class_log.go +++ b/dsBaseRpc/models/t_base_class_log.go @@ -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"` diff --git a/dsBaseRpc/models/t_base_organization.go b/dsBaseRpc/models/t_base_organization.go index 4f480cc3..1b3b7b09 100644 --- a/dsBaseRpc/models/t_base_organization.go +++ b/dsBaseRpc/models/t_base_organization.go @@ -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"` } diff --git a/dsBaseRpc/models/t_base_organization_log.go b/dsBaseRpc/models/t_base_organization_log.go index ec1dd994..6d91c280 100644 --- a/dsBaseRpc/models/t_base_organization_log.go +++ b/dsBaseRpc/models/t_base_organization_log.go @@ -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"` diff --git a/dsBaseRpc/models/t_base_parent.go b/dsBaseRpc/models/t_base_parent.go index c04955fa..6fa02e57 100644 --- a/dsBaseRpc/models/t_base_parent.go +++ b/dsBaseRpc/models/t_base_parent.go @@ -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"` } diff --git a/dsBaseRpc/models/t_base_parent_log.go b/dsBaseRpc/models/t_base_parent_log.go index 1321eecf..a24cc9e2 100644 --- a/dsBaseRpc/models/t_base_parent_log.go +++ b/dsBaseRpc/models/t_base_parent_log.go @@ -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"` diff --git a/dsBaseRpc/models/t_base_student.go b/dsBaseRpc/models/t_base_student.go index 658c67fb..13635da1 100644 --- a/dsBaseRpc/models/t_base_student.go +++ b/dsBaseRpc/models/t_base_student.go @@ -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"` } diff --git a/dsBaseRpc/models/t_base_student_log.go b/dsBaseRpc/models/t_base_student_log.go index e052d247..a585892f 100644 --- a/dsBaseRpc/models/t_base_student_log.go +++ b/dsBaseRpc/models/t_base_student_log.go @@ -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"` diff --git a/dsBaseRpc/models/t_base_teacher.go b/dsBaseRpc/models/t_base_teacher.go index c4caf6e8..f48c7a46 100644 --- a/dsBaseRpc/models/t_base_teacher.go +++ b/dsBaseRpc/models/t_base_teacher.go @@ -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"` } diff --git a/dsBaseRpc/models/t_base_teacher_log.go b/dsBaseRpc/models/t_base_teacher_log.go index 22a9f7f3..65ef8f04 100644 --- a/dsBaseRpc/models/t_base_teacher_log.go +++ b/dsBaseRpc/models/t_base_teacher_log.go @@ -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"` diff --git a/dsBaseRpc/models/t_base_teacher_org.go b/dsBaseRpc/models/t_base_teacher_org.go index 7f4defb1..b3f27a78 100644 --- a/dsBaseRpc/models/t_base_teacher_org.go +++ b/dsBaseRpc/models/t_base_teacher_org.go @@ -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)"` diff --git a/dsBaseRpc/models/t_dataex_data.go b/dsBaseRpc/models/t_dataex_data.go new file mode 100644 index 00000000..5ef39b8d --- /dev/null +++ b/dsBaseRpc/models/t_dataex_data.go @@ -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('删除标志【默认-1,1:删除,-1:正常,输入参数】') INT(11)"` + EnableFlag int32 `xorm:"not null default 1 comment('有效标志【默认1,1:有效,-1:无效数据】') INT(11)"` +} diff --git a/dsBaseRpc/models/t_dataex_dataaccess.go b/dsBaseRpc/models/t_dataex_dataaccess.go index 2f4a7f30..82c50b33 100644 --- a/dsBaseRpc/models/t_dataex_dataaccess.go +++ b/dsBaseRpc/models/t_dataex_dataaccess.go @@ -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"` diff --git a/dsBaseRpc/models/t_dataex_datasource.go b/dsBaseRpc/models/t_dataex_datasource.go index 6089bb6d..831a16af 100644 --- a/dsBaseRpc/models/t_dataex_datasource.go +++ b/dsBaseRpc/models/t_dataex_datasource.go @@ -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('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)"` DicId string `xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)"` CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"` diff --git a/dsBaseRpc/models/t_dataex_error.go b/dsBaseRpc/models/t_dataex_error.go new file mode 100644 index 00000000..57d21336 --- /dev/null +++ b/dsBaseRpc/models/t_dataex_error.go @@ -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('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` + DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` +} diff --git a/dsBaseRpc/models/t_dataex_gbt2260.go b/dsBaseRpc/models/t_dataex_gbt2260.go new file mode 100644 index 00000000..dba09df0 --- /dev/null +++ b/dsBaseRpc/models/t_dataex_gbt2260.go @@ -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('区域类型【2:省,3:市,4:区】') 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('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` + EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` +} diff --git a/dsBaseRpc/models/t_dataex_linksystem.go b/dsBaseRpc/models/t_dataex_linksystem.go index 25c7f6cd..c8d443f0 100644 --- a/dsBaseRpc/models/t_dataex_linksystem.go +++ b/dsBaseRpc/models/t_dataex_linksystem.go @@ -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('数据汇集标志【默认-1,1:启动汇集,-1:关闭汇集】') INT(11)"` diff --git a/dsBaseRpc/models/t_dataex_orgtree.go b/dsBaseRpc/models/t_dataex_orgtree.go index 2ff6ed3a..0aeb1936 100644 --- a/dsBaseRpc/models/t_dataex_orgtree.go +++ b/dsBaseRpc/models/t_dataex_orgtree.go @@ -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('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` - EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认1,1:启用,-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('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` + EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` } diff --git a/dsBaseRpc/models/t_join_app.go b/dsBaseRpc/models/t_join_app.go index 6dfa88b7..d6cd2a3b 100644 --- a/dsBaseRpc/models/t_join_app.go +++ b/dsBaseRpc/models/t_join_app.go @@ -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)"` } diff --git a/dsBaseRpc/models/t_report_sqlquery.go b/dsBaseRpc/models/t_report_sqlquery.go new file mode 100644 index 00000000..940b3861 --- /dev/null +++ b/dsBaseRpc/models/t_report_sqlquery.go @@ -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('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` + EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` +} diff --git a/dsBaseRpc/models/t_sys_loginperson_log.go b/dsBaseRpc/models/t_sys_loginperson_log.go new file mode 100644 index 00000000..f75d387d --- /dev/null +++ b/dsBaseRpc/models/t_sys_loginperson_log.go @@ -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)"` +}