feat: omc原始代码
This commit is contained in:
42
features/sys_user/model/sys_user.go
Normal file
42
features/sys_user/model/sys_user.go
Normal file
@@ -0,0 +1,42 @@
|
||||
package model
|
||||
|
||||
import "nms_nbi/features/sys_role/model"
|
||||
|
||||
type SysUser struct {
|
||||
Id string `json:"id" xorm:"pk 'id' autoincr"`
|
||||
AccountId string `json:"accountId" xorm:"account_id"`
|
||||
Name string `json:"name" xorm:"name"`
|
||||
Sn string `json:"sn"`
|
||||
Gender string `json:"gender"`
|
||||
Description string `json:"description"`
|
||||
TelephoneNumber string `json:"telephoneNumber" xorm:"telephone_number"`
|
||||
Mobile string `json:"mobile"`
|
||||
Email string `json:"email" xorm:"email"`
|
||||
StartTime string `json:"startTime" xorm:"start_time"`
|
||||
EndTime string `json:"endTime" xorm:"end_time"`
|
||||
IdCardNumber string `json:"idCardNumber"`
|
||||
EmployeeNumber string `json:"employeeNumber"`
|
||||
Organize string `json:"organize"`
|
||||
EmployeeType string `json:"employeeType"`
|
||||
SupporterCorpName string `json:"supporterCorpName"`
|
||||
RealName string `json:"realName" xorm:"real_name"`
|
||||
Password string `json:"password" xorm:"-"`
|
||||
PasswordSha512 string `json:"-" xorm:"-"`
|
||||
ChangePasswordFlag int `json:"changePasswordFlag"`
|
||||
PasswordExpiration string `json:"passwordExpiration" xorm:"password_expiration"`
|
||||
Status string `json:"status"`
|
||||
UserExpiration string `json:"userExpiration" xorm:"user_expiration"`
|
||||
GroupName string `json:"groupName" xorm:"group_name"`
|
||||
Profile string `json:"-" xorm:"profile"`
|
||||
Phone string `json:"phone" xorm:"phone"`
|
||||
CreateTime string `json:"createTime" xorm:"create_time"`
|
||||
UpdateTime string `json:"updateTime" xorm:"update_time"`
|
||||
Unit string `json:"unit" xorm:"unit"`
|
||||
|
||||
// 角色对象组
|
||||
Roles []model.SysRole `json:"roles"`
|
||||
// 角色ID - 参数提交绑定
|
||||
RoleID string `json:"roleId,omitempty"`
|
||||
// 角色组 - 参数提交绑定
|
||||
RoleIDs []string `json:"roleIds,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user