Documentation ¶
Index ¶
- func InjectEmployee(s *Employee)
- func InjectSysDept(s *SysDept)
- func LoadEmployee() baseiface.ISingleton
- func LoadSysDept() baseiface.ISingleton
- type Department
- func (entity *Department) AutoMigrate(db *gorm.DB) error
- func (entity *Department) GetCode() string
- func (entity *Department) GetDepPath() string
- func (entity *Department) GetId() int32
- func (entity *Department) GetIsParent() int8
- func (entity *Department) GetMngrId() int32
- func (entity *Department) GetName() string
- func (entity *Department) GetParentId() int32
- func (entity *Department) GetType() int32
- func (entity *Department) Ini(iniPk bool) *Department
- func (entity *Department) IniNil(iniPk bool) *Department
- func (entity *Department) SetCode(Code string)
- func (entity *Department) SetDepPath(DepPath string)
- func (entity *Department) SetId(Id int32)
- func (entity *Department) SetIsParent(IsParent int8)
- func (entity *Department) SetMngrId(MngrId int32)
- func (entity *Department) SetName(Name string)
- func (entity *Department) SetParentId(ParentId int32)
- func (entity *Department) SetType(Type int32)
- func (entity *Department) String() string
- func (entity *Department) TableName() string
- func (entity *Department) ToString() string
- func (entity *Department) Unmarshal(body string) error
- func (entity *Department) UnmarshalBy(body []byte) error
- type DepartmentDto
- type DepartmentParams
- 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
- type SysDeptVo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectEmployee ¶
func InjectEmployee(s *Employee)
func InjectSysDept ¶
func InjectSysDept(s *SysDept)
func LoadEmployee ¶
func LoadEmployee() baseiface.ISingleton
func LoadSysDept ¶
func LoadSysDept() baseiface.ISingleton
Types ¶
type Department ¶
type Department struct { /* */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 编码 */ Code string `gorm:"column:code;type:varchar(32);comment:'编码';default:\'none\'" json:"code"` /* 部门名称 */ Name string `gorm:"column:name;type:varchar(32);comment:'部门名称'" json:"name"` /* */ ParentId int32 `gorm:"column:parent_id;type:int(11);comment:''" json:"parent_id"` /* */ DepPath string `gorm:"column:dep_path;type:varchar(255);comment:''" json:"dep_path"` Enabled uint8 `gorm:"column:enabled;type:bit(1);comment:''" json:"enabled"` IsParent int8 `gorm:"column:is_parent;type:tinyint(1);comment:'';default:0" json:"is_parent,string"` /* 负责人 */ MngrId int32 `gorm:"column:mngr_id;type:int(11);comment:'负责人';default:0" json:"mngr_id"` /* 0-部门 1-班组 */ Type int32 `gorm:"column:type;type:int(11);comment:'0-部门 1-班组';default:0" json:"type"` }
func NewDepartment ¶
func NewDepartment() *Department
func (*Department) GetCode ¶
func (entity *Department) GetCode() string
func (*Department) GetDepPath ¶
func (entity *Department) GetDepPath() string
func (*Department) GetId ¶
func (entity *Department) GetId() int32
func (*Department) GetIsParent ¶
func (entity *Department) GetIsParent() int8
func (*Department) GetMngrId ¶
func (entity *Department) GetMngrId() int32
func (*Department) GetName ¶
func (entity *Department) GetName() string
func (*Department) GetParentId ¶
func (entity *Department) GetParentId() int32
func (*Department) GetType ¶
func (entity *Department) GetType() int32
func (*Department) Ini ¶
func (entity *Department) Ini(iniPk bool) *Department
iniPk bool:是否初始化主键Id 初始化指针
func (*Department) IniNil ¶
func (entity *Department) IniNil(iniPk bool) *Department
iniPk bool:是否初始化主键Id 初始化指针
func (*Department) SetCode ¶
func (entity *Department) SetCode(Code string)
func (*Department) SetDepPath ¶
func (entity *Department) SetDepPath(DepPath string)
func (*Department) SetId ¶
func (entity *Department) SetId(Id int32)
func (*Department) SetIsParent ¶
func (entity *Department) SetIsParent(IsParent int8)
func (*Department) SetMngrId ¶
func (entity *Department) SetMngrId(MngrId int32)
func (*Department) SetName ¶
func (entity *Department) SetName(Name string)
func (*Department) SetParentId ¶
func (entity *Department) SetParentId(ParentId int32)
func (*Department) SetType ¶
func (entity *Department) SetType(Type int32)
func (*Department) TableName ¶
func (entity *Department) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
func (*Department) ToString ¶
func (entity *Department) ToString() string
func (*Department) Unmarshal ¶
func (entity *Department) Unmarshal(body string) error
func (*Department) UnmarshalBy ¶
func (entity *Department) UnmarshalBy(body []byte) error
type DepartmentDto ¶
type DepartmentDto struct { /* */ Id int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 编码 */ Code string `gorm:"column:code;type:varchar(32);comment:'编码';default:\'none\'" json:"code"` /* 部门名称 */ Name string `gorm:"column:name;type:varchar(32);comment:'部门名称'" json:"name"` /* */ ParentId int32 `gorm:"column:parent_id;type:int(11);comment:''" json:"parent_id"` /* */ DepPath string `gorm:"column:dep_path;type:varchar(255);comment:''" json:"dep_path"` /* */ Enabled basemodel.BitField `gorm:"column:enabled;type:bit(1);comment:''" json:"enabled"` /* */ IsParent int8 `gorm:"column:is_parent;type:tinyint(1);comment:'';default:0" json:"is_parent"` /* 负责人 */ MngrId int32 `gorm:"column:mngr_id;type:int(11);comment:'负责人';default:0" json:"mngr_id"` /* 0-部门 1-班组 */ Type int32 `gorm:"column:type;type:int(11);comment:'0-部门 1-班组';default:0" json:"type"` }
type DepartmentParams ¶
type DepartmentParams struct { /* */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 编码 */ Code *string `gorm:"column:code;type:varchar(32);comment:'编码';default:\'none\'" json:"code"` /* 部门名称 */ Name *string `gorm:"column:name;type:varchar(32);comment:'部门名称'" json:"name"` /* */ ParentId *int32 `gorm:"column:parent_id;type:int(11);comment:''" json:"parent_id"` /* */ DepPath *string `gorm:"column:dep_path;type:varchar(255);comment:''" json:"dep_path"` /* */ Enabled *basemodel.BitField `gorm:"column:enabled;type:bit(1);comment:''" json:"enabled"` /* */ IsParent *int8 `gorm:"column:is_parent;type:tinyint(1);comment:'';default:0" json:"is_parent"` /* 负责人 */ MngrId *int32 `gorm:"column:mngr_id;type:int(11);comment:'负责人';default:0" json:"mngr_id"` /* 0-部门 1-班组 */ Type *int32 `gorm:"column:type;type:int(11);comment:'0-部门 1-班组';default:0" json:"type"` }
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:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ 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 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:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ 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:code;type:varchar(8);comment:'工号'" json:"code"` /* 合同期限 */ 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:rule;type:mediumtext;comment:''" json:"rule"` /* */ 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:rule;type:mediumtext;comment:''" json:"rule"` /* */ 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:rule;type:mediumtext;comment:''" json:"rule"` /* */ 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 { basedto.BaseEntity /* 部门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
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.