You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
2.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package models
import (
"time"
)
type TDataexOrgtree struct {
Id string `json:"id" xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)"`
OrgName string `json:"org_name" xorm:"not null comment('机构名称') VARCHAR(100)"`
OrgType int `json:"org_type" xorm:"not null comment('机构类型【1教育局、2学校、3教辅单位、4大学区、5部门、6、主校7、学段、8年级、9班级】') INT(11)"`
SchoolType string `json:"school_type" xorm:"default '''' comment('学校办学类别
【111幼儿园
211小学
218小学教学点
311初级中学
312九年一贯制学校
321职业初中
341完全中学
342高级中学
345十二年一贯制学校
361中等职业学校
365职业高中学校
411大学
415高等职业学校
426广播电视大学
514特殊教育学校
933其他培训机构】') VARCHAR(3)"`
ParentId string `json:"parent_id" xorm:"not null default ''NULL'' comment('父节点ID') VARCHAR(36)"`
CatId string `json:"cat_id" xorm:"default 'NULL' comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)"`
ProvinceId string `json:"province_id" xorm:"default 'NULL' comment('省编码') VARCHAR(6)"`
CityId string `json:"city_id" xorm:"default 'NULL' comment('地市编码') VARCHAR(6)"`
AreaId string `json:"area_id" xorm:"default '''' comment('所属县区编码') VARCHAR(6)"`
AreaId2 string `json:"area_id2" xorm:"default '''' comment('所在县区编码') VARCHAR(6)"`
AreaId3 string `json:"area_id3" xorm:"default '''' comment('所属县区编码(没用)') VARCHAR(6)"`
LinksystemId string `json:"linksystem_id" xorm:"default 'NULL' comment('源业务系统') VARCHAR(36)"`
LinkId string `json:"link_id" xorm:"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)"`
CreateTime time.Time `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME"`
ChangeTime time.Time `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME"`
DeleteTime time.Time `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME"`
DeleteFlag int `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-11删除-1正常】') INT(11)"`
EnableFlag int `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)"`
}