Documentation ¶
Index ¶
- func InjectEmployee(s *Employee)
- func LoadEmployee() baseiface.ISingleton
- type Employee
- type EmployeeEntity
- type EmployeeParams
- type Params
- func (entity *Params) AutoMigrate(db *gorm.DB) error
- func (entity *Params) GetId() int64
- func (entity *Params) GetParamName() string
- func (entity *Params) GetParamType() string
- func (entity *Params) GetParentId() int64
- func (entity *Params) Ini(iniPk bool) *Params
- func (entity *Params) IniNil(iniPk bool) *Params
- func (entity *Params) SetId(Id int64)
- func (entity *Params) SetParamName(ParamName string)
- func (entity *Params) SetParamType(ParamType string)
- func (entity *Params) SetParentId(ParentId int64)
- func (entity *Params) String() string
- func (entity *Params) TableName() string
- func (entity *Params) ToString() string
- func (entity *Params) Unmarshal(body string) error
- func (entity *Params) UnmarshalBy(body []byte) error
- type ParamsVo
- type RuleParams
- func (entity *RuleParams) AutoMigrate(db *gorm.DB) error
- func (entity *RuleParams) GetId() int64
- func (entity *RuleParams) GetInival() string
- func (entity *RuleParams) GetOption() string
- func (entity *RuleParams) GetParamName() string
- func (entity *RuleParams) GetParamType() string
- func (entity *RuleParams) GetParentId() int64
- func (entity *RuleParams) GetPolicyId() int32
- func (entity *RuleParams) GetRemark() string
- func (entity *RuleParams) Ini(iniPk bool) *RuleParams
- func (entity *RuleParams) IniNil(iniPk bool) *RuleParams
- func (entity *RuleParams) SetId(Id int64)
- func (entity *RuleParams) SetInival(Inival string)
- func (entity *RuleParams) SetOption(Option string)
- func (entity *RuleParams) SetParamName(ParamName string)
- func (entity *RuleParams) SetParamType(ParamType string)
- func (entity *RuleParams) SetParentId(ParentId int64)
- func (entity *RuleParams) SetPolicyId(PolicyId int32)
- func (entity *RuleParams) SetRemark(Remark string)
- func (entity *RuleParams) String() string
- func (entity *RuleParams) TableName() string
- func (entity *RuleParams) ToString() string
- func (entity *RuleParams) Unmarshal(body string) error
- func (entity *RuleParams) UnmarshalBy(body []byte) error
- type RuleParamsVo
- type Rules
- func (entity *Rules) AutoMigrate(db *gorm.DB) error
- func (entity *Rules) GetCreatedAt() basemodel.IchubLocalTime
- func (entity *Rules) GetCreatedBy() int64
- func (entity *Rules) GetDomain() string
- func (entity *Rules) GetFuncType() string
- func (entity *Rules) GetName() string
- func (entity *Rules) GetParam() string
- func (entity *Rules) GetRemark() string
- func (entity *Rules) GetResult() string
- func (entity *Rules) GetRule() string
- func (entity *Rules) GetRuleId() int64
- func (entity *Rules) GetRuleKey() string
- func (entity *Rules) Ini(iniPk bool) *Rules
- func (entity *Rules) IniNil(iniPk bool) *Rules
- func (entity *Rules) SetCreatedAt(CreatedAt basemodel.IchubLocalTime)
- func (entity *Rules) SetCreatedBy(CreatedBy int64)
- func (entity *Rules) SetDomain(Domain string)
- func (entity *Rules) SetFuncType(FuncType string)
- func (entity *Rules) SetName(Name string)
- func (entity *Rules) SetParam(Param string)
- func (entity *Rules) SetRemark(Remark string)
- func (entity *Rules) SetResult(Result string)
- func (entity *Rules) SetRule(Rule string)
- func (entity *Rules) SetRuleId(RuleId int64)
- func (entity *Rules) SetRuleKey(RuleKey string)
- func (entity *Rules) String() string
- func (entity *Rules) TableName() string
- func (entity *Rules) ToString() string
- func (entity *Rules) Unmarshal(body string) error
- func (entity *Rules) UnmarshalBy(body []byte) error
- type RulesDto
- type RulesParams
- type SysDept
- func (entity *SysDept) AutoMigrate(db *gorm.DB) error
- func (entity *SysDept) GetAncestors() string
- func (entity *SysDept) GetCreateBy() string
- func (entity *SysDept) GetCreateTime() basemodel.LocalTime
- func (entity *SysDept) GetDelFlag() string
- func (entity *SysDept) GetDeptId() int64
- func (entity *SysDept) GetDeptName() string
- func (entity *SysDept) GetEmail() string
- func (entity *SysDept) GetLeader() string
- func (entity *SysDept) GetOrderNum() int32
- func (entity *SysDept) GetParentId() int64
- func (entity *SysDept) GetPhone() string
- func (entity *SysDept) GetStatus() string
- func (entity *SysDept) GetUpdateBy() string
- func (entity *SysDept) GetUpdateTime() time.Time
- func (entity *SysDept) Ini(iniPk bool) *SysDept
- func (entity *SysDept) IniNil(iniPk bool) *SysDept
- func (entity *SysDept) SetAncestors(Ancestors string)
- func (entity *SysDept) SetCreateBy(CreateBy string)
- func (entity *SysDept) SetCreateTime(CreateTime basemodel.LocalTime)
- func (entity *SysDept) SetDelFlag(DelFlag string)
- func (entity *SysDept) SetDeptId(DeptId int64)
- func (entity *SysDept) SetDeptName(DeptName string)
- func (entity *SysDept) SetEmail(Email string)
- func (entity *SysDept) SetLeader(Leader string)
- func (entity *SysDept) SetOrderNum(OrderNum int32)
- func (entity *SysDept) SetParentId(ParentId int64)
- func (entity *SysDept) SetPhone(Phone string)
- func (entity *SysDept) SetStatus(Status string)
- func (entity *SysDept) SetUpdateBy(UpdateBy string)
- func (entity *SysDept) SetUpdateTime(UpdateTime time.Time)
- func (entity *SysDept) String() string
- func (entity *SysDept) TableName() string
- func (entity *SysDept) ToString() string
- func (entity *SysDept) Unmarshal(body string) error
- func (entity *SysDept) UnmarshalBy(body []byte) error
- type SysDeptVo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectEmployee ¶
func InjectEmployee(s *Employee)
func LoadEmployee ¶
func LoadEmployee() baseiface.ISingleton
Types ¶
type Employee ¶
type Employee struct { basedto.BaseEntity `gorm:"-"` /* 员工编号 */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` /* 所属部门 */ DepartmentId int32 `gorm:"column:department_id;type:int(11);comment:'所属部门';default:0" json:"department_id"` /* 员工姓名 */ Name string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday time.Time `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday"` /* 身份证号 */ IdCard string `gorm:"column:id_card;type:char(18);comment:'身份证号'" json:"id_card"` /* 婚姻状况 */ Wedlock string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId int32 `gorm:"column:nation_id;type:int(8);comment:'民族'" json:"nation_id"` /* 籍贯 */ NativePlace string `gorm:"column:native_place;type:varchar(20);comment:'籍贯'" json:"native_place"` /* 政治面貌 */ PoliticId int32 `gorm:"column:politic_id;type:int(8);comment:'政治面貌'" json:"politic_id"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"` /* 电话号码 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"` /* 联系地址 */ Address string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"` /* 职称ID */ JobLevelId int32 `gorm:"column:job_level_id;type:int(11);comment:'职称ID'" json:"job_level_id"` /* 职位ID */ PosId int32 `gorm:"column:pos_id;type:int(11);comment:'职位ID'" json:"pos_id"` /* 聘用形式 */ EngageForm string `gorm:"column:engage_form;type:varchar(8);comment:'聘用形式'" json:"engage_form"` /* 最高学历 */ TiptopDegree string `gorm:"column:tiptop_degree;type:varchar(8);comment:'最高学历'" json:"tiptop_degree"` /* 所属专业 */ Specialty string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate time.Time `gorm:"column:begin_date;type:date;comment:'入职日期'" json:"begin_date"` /* 在职状态 */ WorkState string `gorm:"column:work_state;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"work_state"` /* 工号 */ Code string `gorm:"column:core;type:varchar(8);comment:'工号'" json:"core"` /* 合同期限 */ ContractTerm float64 `gorm:"column:contract_term;type:double;comment:'合同期限'" json:"contract_term"` /* 转正日期 */ ConversionTime time.Time `gorm:"column:conversion_time;type:date;comment:'转正日期'" json:"conversion_time"` /* 离职日期 */ NotWokDate time.Time `gorm:"column:not_wok_date;type:date;comment:'离职日期'" json:"not_wok_date"` /* 合同起始日期 */ BeginContract time.Time `gorm:"column:begin_contract;type:date;comment:'合同起始日期'" json:"begin_contract"` /* 合同终止日期 */ EndContract time.Time `gorm:"column:end_contract;type:date;comment:'合同终止日期'" json:"end_contract"` /* 工龄 */ WorkAge int32 `gorm:"column:work_age;type:int(11);comment:'工龄'" json:"work_age"` /* */ WorkId string `gorm:"column:work_id;type:varchar(16);comment:''" json:"work_id"` }
func FindBeanEmployee ¶
func FindBeanEmployee() *Employee
func NewEmployee ¶
func NewEmployee() *Employee
func (*Employee) UnmarshalBy ¶
type EmployeeEntity ¶
type EmployeeEntity struct { /* 员工编号 */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` /* 所属部门 */ DepartmentId int32 `gorm:"column:department_id;type:int(11);comment:'所属部门';default:0" json:"department_id"` /* 员工姓名 */ Name string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday int64 `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday,string"` /* 身份证号 */ IdCard string `gorm:"column:id_card;type:char(18);comment:'身份证号'" json:"id_card"` /* 婚姻状况 */ Wedlock string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId int32 `gorm:"column:nation_id;type:int(8);comment:'民族'" json:"nation_id"` /* 籍贯 */ NativePlace string `gorm:"column:native_place;type:varchar(20);comment:'籍贯'" json:"native_place"` /* 政治面貌 */ PoliticId int32 `gorm:"column:politic_id;type:int(8);comment:'政治面貌'" json:"politic_id"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"` /* 电话号码 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"` /* 联系地址 */ Address string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"` /* 职称ID */ JobLevelId int32 `gorm:"column:job_level_id;type:int(11);comment:'职称ID'" json:"job_level_id"` /* 职位ID */ PosId int32 `gorm:"column:pos_id;type:int(11);comment:'职位ID'" json:"pos_id"` /* 聘用形式 */ EngageForm string `gorm:"column:engage_form;type:varchar(8);comment:'聘用形式'" json:"engage_form"` /* 最高学历 */ TiptopDegree string `gorm:"column:tiptop_degree;type:varchar(8);comment:'最高学历'" json:"tiptop_degree"` /* 所属专业 */ Specialty string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate int64 `gorm:"column:begin_date;type:date;comment:'入职日期'" json:"begin_date,string"` /* 在职状态 */ WorkState string `gorm:"column:work_state;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"work_state"` /* 工号 */ Code string `gorm:"column:core;type:varchar(8);comment:'工号'" json:"core"` /* 合同期限 */ ContractTerm float64 `gorm:"column:contract_term;type:double;comment:'合同期限'" json:"contract_term"` /* 转正日期 */ ConversionTime int64 `gorm:"column:conversion_time;type:date;comment:'转正日期'" json:"conversion_time,string"` /* 离职日期 */ NotWokDate int64 `gorm:"column:not_wok_date;type:date;comment:'离职日期'" json:"not_wok_date,string"` /* 合同起始日期 */ BeginContract int64 `gorm:"column:begin_contract;type:date;comment:'合同起始日期'" json:"begin_contract,string"` /* 合同终止日期 */ EndContract int64 `gorm:"column:end_contract;type:date;comment:'合同终止日期'" json:"end_contract,string"` /* 工龄 */ WorkAge int32 `gorm:"column:work_age;type:int(11);comment:'工龄'" json:"work_age"` /* */ WorkId string `gorm:"column:work_id;type:varchar(16);comment:''" json:"work_id"` }
type EmployeeParams ¶
type EmployeeParams struct { /* 员工编号 */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:'员工编号'" json:"id"` /* 所属部门 */ DepartmentId *int32 `gorm:"column:department_id;type:int(11);comment:'所属部门';default:0" json:"department_id"` /* 员工姓名 */ Name *string `gorm:"column:name;type:varchar(16);comment:'员工姓名'" json:"name"` /* 性别 */ Gender *string `gorm:"column:gender;type:char(4);comment:'性别'" json:"gender"` /* 出生日期 */ Birthday *time.Time `gorm:"column:birthday;type:date;comment:'出生日期'" json:"birthday"` /* 身份证号 */ IdCard *string `gorm:"column:id_card;type:char(18);comment:'身份证号'" json:"id_card"` /* 婚姻状况 */ Wedlock *string `gorm:"column:wedlock;type:varchar(8);comment:'婚姻状况'" json:"wedlock"` /* 民族 */ NationId *int32 `gorm:"column:nation_id;type:int(8);comment:'民族'" json:"nation_id"` /* 籍贯 */ NativePlace *string `gorm:"column:native_place;type:varchar(20);comment:'籍贯'" json:"native_place"` /* 政治面貌 */ PoliticId *int32 `gorm:"column:politic_id;type:int(8);comment:'政治面貌'" json:"politic_id"` /* 邮箱 */ Email *string `gorm:"column:email;type:varchar(20);comment:'邮箱'" json:"email"` /* 电话号码 */ Phone *string `gorm:"column:phone;type:varchar(11);comment:'电话号码'" json:"phone"` /* 联系地址 */ Address *string `gorm:"column:address;type:varchar(64);comment:'联系地址'" json:"address"` /* 职称ID */ JobLevelId *int32 `gorm:"column:job_level_id;type:int(11);comment:'职称ID'" json:"job_level_id"` /* 职位ID */ PosId *int32 `gorm:"column:pos_id;type:int(11);comment:'职位ID'" json:"pos_id"` /* 聘用形式 */ EngageForm *string `gorm:"column:engage_form;type:varchar(8);comment:'聘用形式'" json:"engage_form"` /* 最高学历 */ TiptopDegree *string `gorm:"column:tiptop_degree;type:varchar(8);comment:'最高学历'" json:"tiptop_degree"` /* 所属专业 */ Specialty *string `gorm:"column:specialty;type:varchar(32);comment:'所属专业'" json:"specialty"` /* 毕业院校 */ School *string `gorm:"column:school;type:varchar(32);comment:'毕业院校'" json:"school"` /* 入职日期 */ BeginDate *time.Time `gorm:"column:begin_date;type:date;comment:'入职日期'" json:"begin_date"` /* 在职状态 */ WorkState *string `gorm:"column:work_state;type:varchar(8);comment:'在职状态';default:\'在职\'" json:"work_state"` /* 工号 */ Code *string `gorm:"column:core;type:varchar(8);comment:'工号'" json:"core"` /* 合同期限 */ ContractTerm *float64 `gorm:"column:contract_term;type:double;comment:'合同期限'" json:"contract_term"` /* 转正日期 */ ConversionTime *time.Time `gorm:"column:conversion_time;type:date;comment:'转正日期'" json:"conversion_time"` /* 离职日期 */ NotWokDate *time.Time `gorm:"column:not_wok_date;type:date;comment:'离职日期'" json:"not_wok_date"` /* 合同起始日期 */ BeginContract *time.Time `gorm:"column:begin_contract;type:date;comment:'合同起始日期'" json:"begin_contract"` /* 合同终止日期 */ EndContract *time.Time `gorm:"column:end_contract;type:date;comment:'合同终止日期'" json:"end_contract"` /* 工龄 */ WorkAge *int32 `gorm:"column:work_age;type:int(11);comment:'工龄'" json:"work_age"` /* */ WorkId *string `gorm:"column:work_id;type:varchar(16);comment:''" json:"work_id"` }
type Params ¶
type Params struct { /* */ Id int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:''" json:"id,string"` /* */ ParamType string `gorm:"column:param_type;type:varchar(255);comment:''" json:"paramType"` /* */ ParamName string `gorm:"column:param_name;type:varchar(255);comment:''" json:"paramName"` /* */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:''" json:"parentId,string"` }
func (*Params) GetParamName ¶
func (*Params) GetParamType ¶
func (*Params) GetParentId ¶
func (*Params) SetParamName ¶
func (*Params) SetParamType ¶
func (*Params) SetParentId ¶
func (*Params) UnmarshalBy ¶
type ParamsVo ¶
type ParamsVo struct { /* */ Id int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:''" json:"id,string"` /* */ ParamType string `gorm:"column:param_type;type:varchar(255);comment:''" json:"paramType"` /* */ ParamName string `gorm:"column:param_name;type:varchar(255);comment:''" json:"paramName"` /* */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:''" json:"parentId,string"` }
type RuleParams ¶
type RuleParams struct { /* */ Id int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:''" json:"id,string"` /* */ ParamType string `gorm:"column:param_type;type:varchar(255);comment:''" json:"param_type"` /* */ ParamName string `gorm:"column:param_name;type:varchar(255);comment:''" json:"param_name"` /* */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:''" json:"parent_id,string"` /* 中文 */ Remark string `gorm:"column:remark;type:varchar(255);comment:'中文'" json:"remark"` /* 默认 */ Inival string `gorm:"column:inival;type:varchar(255);comment:'默认'" json:"inival"` /* */ Option string `gorm:"column:option;type:varchar(255);comment:''" json:"option"` /* */ PolicyId int32 `gorm:"column:policy_id;type:int(11);comment:'';default:-1" json:"policy_id"` }
func (*RuleParams) GetId ¶
func (entity *RuleParams) GetId() int64
func (*RuleParams) GetInival ¶
func (entity *RuleParams) GetInival() string
func (*RuleParams) GetOption ¶
func (entity *RuleParams) GetOption() string
func (*RuleParams) GetParamName ¶
func (entity *RuleParams) GetParamName() string
func (*RuleParams) GetParamType ¶
func (entity *RuleParams) GetParamType() string
func (*RuleParams) GetParentId ¶
func (entity *RuleParams) GetParentId() int64
func (*RuleParams) GetPolicyId ¶
func (entity *RuleParams) GetPolicyId() int32
func (*RuleParams) GetRemark ¶
func (entity *RuleParams) GetRemark() string
func (*RuleParams) Ini ¶
func (entity *RuleParams) Ini(iniPk bool) *RuleParams
iniPk bool:是否初始化主键Id 初始化指针
func (*RuleParams) IniNil ¶
func (entity *RuleParams) IniNil(iniPk bool) *RuleParams
iniPk bool:是否初始化主键Id 初始化指针
func (*RuleParams) SetId ¶
func (entity *RuleParams) SetId(Id int64)
func (*RuleParams) SetInival ¶
func (entity *RuleParams) SetInival(Inival string)
func (*RuleParams) SetOption ¶
func (entity *RuleParams) SetOption(Option string)
func (*RuleParams) SetParamName ¶
func (entity *RuleParams) SetParamName(ParamName string)
func (*RuleParams) SetParamType ¶
func (entity *RuleParams) SetParamType(ParamType string)
func (*RuleParams) SetParentId ¶
func (entity *RuleParams) SetParentId(ParentId int64)
func (*RuleParams) SetPolicyId ¶
func (entity *RuleParams) SetPolicyId(PolicyId int32)
func (*RuleParams) SetRemark ¶
func (entity *RuleParams) SetRemark(Remark string)
func (*RuleParams) TableName ¶
func (entity *RuleParams) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
func (*RuleParams) ToString ¶
func (entity *RuleParams) ToString() string
func (*RuleParams) Unmarshal ¶
func (entity *RuleParams) Unmarshal(body string) error
func (*RuleParams) UnmarshalBy ¶
func (entity *RuleParams) UnmarshalBy(body []byte) error
type RuleParamsVo ¶
type RuleParamsVo struct { /* */ Id int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:''" json:"id,string"` /* */ ParamType string `gorm:"column:param_type;type:varchar(255);comment:''" json:"param_type"` /* */ ParamName string `gorm:"column:param_name;type:varchar(255);comment:''" json:"param_name"` /* */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:''" json:"parent_id,string"` /* 中文 */ Remark string `gorm:"column:remark;type:varchar(255);comment:'中文'" json:"remark"` /* 默认 */ Inival string `gorm:"column:inival;type:varchar(255);comment:'默认'" json:"inival"` /* */ Option string `gorm:"column:option;type:varchar(255);comment:''" json:"option"` /* */ PolicyId int32 `gorm:"column:policy_id;type:int(11);comment:'';default:-1" json:"policy_id"` }
type Rules ¶
type Rules struct { /* */ RuleId int64 `gorm:"column:rule_id;type:bigint(20);PRIMARY_KEY;comment:''" json:"rule_id,string"` /* */ RuleKey string `gorm:"column:rule_key;type:varchar(255);comment:''" json:"rule_key"` /* */ Name string `gorm:"column:name;type:varchar(255);comment:''" json:"name"` /* */ Domain string `gorm:"column:bizframe;type:varchar(255);comment:''" json:"bizframe"` /* */ Rule string `gorm:"column:server;type:mediumtext;comment:''" json:"server"` /* */ Param string `gorm:"column:param;type:tinytext;comment:''" json:"param"` /* */ Result string `gorm:"column:result;type:mediumtext;comment:''" json:"result"` /* */ Remark string `gorm:"column:remark;type:varchar(255);comment:''" json:"remark"` /* */ FuncType string `gorm:"column:func_type;type:varchar(255);comment:''" json:"func_type"` /* */ CreatedAt basemodel.IchubLocalTime `gorm:"column:created_at;type:datetime;comment:''" json:"created_at"` /* 创建者 */ CreatedBy int64 `gorm:"column:created_by;type:bigint(20);comment:'创建者';default:-1" json:"created_by,string"` }
func (*Rules) GetCreatedAt ¶
func (entity *Rules) GetCreatedAt() basemodel.IchubLocalTime
func (*Rules) GetCreatedBy ¶
func (*Rules) GetFuncType ¶
func (*Rules) GetRuleKey ¶
func (*Rules) SetCreatedAt ¶
func (entity *Rules) SetCreatedAt(CreatedAt basemodel.IchubLocalTime)
func (*Rules) SetCreatedBy ¶
func (*Rules) SetFuncType ¶
func (*Rules) SetRuleKey ¶
func (*Rules) UnmarshalBy ¶
type RulesDto ¶
type RulesDto struct { /* */ RuleId int64 `gorm:"column:rule_id;type:bigint(20);PRIMARY_KEY;comment:''" json:"rule_id,string"` /* */ RuleKey string `gorm:"column:rule_key;type:varchar(255);comment:''" json:"rule_key"` /* */ Name string `gorm:"column:name;type:varchar(255);comment:''" json:"name"` /* */ Domain string `gorm:"column:bizframe;type:varchar(255);comment:''" json:"bizframe"` /* */ Rule string `gorm:"column:server;type:mediumtext;comment:''" json:"server"` /* */ Param string `gorm:"column:param;type:tinytext;comment:''" json:"param"` /* */ Result string `gorm:"column:result;type:mediumtext;comment:''" json:"result"` /* */ Remark string `gorm:"column:remark;type:varchar(255);comment:''" json:"remark"` /* */ FuncType string `gorm:"column:func_type;type:varchar(255);comment:''" json:"func_type"` /* */ CreatedAt basemodel.LocalTime `gorm:"column:created_at;type:datetime;comment:''" json:"created_at"` /* 创建者 */ CreatedBy int64 `gorm:"column:created_by;type:bigint(20);comment:'创建者';default:-1" json:"created_by,string"` }
type RulesParams ¶
type RulesParams struct { /* */ RuleId *int64 `gorm:"column:rule_id;type:bigint(20);PRIMARY_KEY;comment:''" json:"rule_id,string"` /* */ RuleKey *string `gorm:"column:rule_key;type:varchar(255);comment:''" json:"rule_key"` /* */ Name *string `gorm:"column:name;type:varchar(255);comment:''" json:"name"` /* */ Domain *string `gorm:"column:bizframe;type:varchar(255);comment:''" json:"bizframe"` /* */ Rule *string `gorm:"column:server;type:mediumtext;comment:''" json:"server"` /* */ Param *string `gorm:"column:param;type:tinytext;comment:''" json:"param"` /* */ Result *string `gorm:"column:result;type:mediumtext;comment:''" json:"result"` /* */ Remark *string `gorm:"column:remark;type:varchar(255);comment:''" json:"remark"` /* */ FuncType *string `gorm:"column:func_type;type:varchar(255);comment:''" json:"func_type"` /* */ CreatedAt *basemodel.LocalTime `gorm:"column:created_at;type:datetime;comment:''" json:"created_at"` /* 创建者 */ CreatedBy *int64 `gorm:"column:created_by;type:bigint(20);comment:'创建者';default:-1" json:"created_by,string"` }
type SysDept ¶
type SysDept struct { /* 部门id */ DeptId int64 `gorm:"column:dept_id;type:bigint(20);PRIMARY_KEY;comment:'部门id'" json:"dept_id,string"` /* 父部门id */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:'父部门id';default:0" json:"parent_id,string"` /* 祖级列表 */ Ancestors string `gorm:"column:ancestors;type:varchar(50);comment:'祖级列表'" json:"ancestors"` /* 部门名称 */ DeptName string `gorm:"column:dept_name;type:varchar(30);comment:'部门名称'" json:"dept_name"` /* 显示顺序 */ OrderNum int32 `gorm:"column:order_num;type:int(4);comment:'显示顺序';default:0" json:"order_nm"` /* 负责人 */ Leader string `gorm:"column:leader;type:varchar(20);comment:'负责人'" json:"leader"` /* 联系电话 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'联系电话'" json:"phone"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(50);comment:'邮箱'" json:"email"` /* 部门状态(0正常 1停用) */ Status string `gorm:"column:status;type:char(1);comment:'部门状态(0正常 1停用)';default:\'0\'" json:"status"` /* 删除标志(0代表存在 2代表删除) */ DelFlag string `gorm:"column:del_flag;type:char(1);comment:'删除标志(0代表存在 2代表删除)';default:\'0\'" json:"del_flag"` /* 创建者 */ CreateBy string `gorm:"column:create_by;type:varchar(64);comment:'创建者'" json:"create_by"` /* 创建时间 */ CreateTime time.Time `gorm:"column:create_time;type:datetime;comment:'创建时间'" json:"create_time"` /* 更新者 */ UpdateBy string `gorm:"column:update_by;type:varchar(64);comment:'更新者'" json:"update_by"` /* 更新时间 */ UpdateTime time.Time `gorm:"column:update_time;type:datetime;comment:'更新时间'" json:"-"` }
部门表
func NewSysDept ¶
func NewSysDept() *SysDept
func (*SysDept) GetAncestors ¶
func (*SysDept) GetCreateBy ¶
func (*SysDept) GetCreateTime ¶
func (*SysDept) GetDelFlag ¶
func (*SysDept) GetDeptName ¶
func (*SysDept) GetOrderNum ¶
func (*SysDept) GetParentId ¶
func (*SysDept) GetUpdateBy ¶
func (*SysDept) GetUpdateTime ¶
func (*SysDept) SetAncestors ¶
func (*SysDept) SetCreateBy ¶
func (*SysDept) SetCreateTime ¶
func (*SysDept) SetDelFlag ¶
func (*SysDept) SetDeptName ¶
func (*SysDept) SetOrderNum ¶
func (*SysDept) SetParentId ¶
func (*SysDept) SetUpdateBy ¶
func (*SysDept) SetUpdateTime ¶
func (*SysDept) UnmarshalBy ¶
type SysDeptVo ¶
type SysDeptVo struct { /* 部门id */ DeptId int64 `gorm:"column:dept_id;type:bigint(20);PRIMARY_KEY;comment:'部门id'" json:"dept_id,string"` /* 父部门id */ ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:'父部门id';default:0" json:"parent_id,string"` /* 祖级列表 */ Ancestors string `gorm:"column:ancestors;type:varchar(50);comment:'祖级列表'" json:"ancestors"` /* 部门名称 */ DeptName string `gorm:"column:dept_name;type:varchar(30);comment:'部门名称'" json:"deptName"` /* 显示顺序 */ OrderNum int32 `gorm:"column:order_num;type:int(4);comment:'显示顺序';default:0" json:"orderNum"` /* 负责人 */ Leader string `gorm:"column:leader;type:varchar(20);comment:'负责人'" json:"leader"` /* 联系电话 */ Phone string `gorm:"column:phone;type:varchar(11);comment:'联系电话'" json:"phone"` /* 邮箱 */ Email string `gorm:"column:email;type:varchar(50);comment:'邮箱'" json:"email"` /* 部门状态(0正常 1停用) */ Status string `gorm:"column:status;type:char(1);comment:'部门状态(0正常 1停用)';default:\'0\'" json:"status"` /* 删除标志(0代表存在 2代表删除) */ DelFlag string `gorm:"column:del_flag;type:char(1);comment:'删除标志(0代表存在 2代表删除)';default:\'0\'" json:"delFlag"` /* 创建者 */ CreateBy string `gorm:"column:create_by;type:varchar(64);comment:'创建者'" json:"createBy"` /* 创建时间 */ CreateTime basemodel.LocalTime `gorm:"column:create_time;type:datetime;comment:'创建时间'" json:"createTime"` /* 更新者 */ UpdateBy string `gorm:"column:update_by;type:varchar(64);comment:'更新者'" json:"updateBy"` /* 更新时间 */ UpdateTime basemodel.LocalTime `gorm:"column:update_time;type:datetime;comment:'更新时间'" json:"updateTime"` }
Click to show internal directories.
Click to hide internal directories.