用户信息接口
This commit is contained in:
41
features/sys_user/model/sys_user.go
Normal file
41
features/sys_user/model/sys_user.go
Normal file
@@ -0,0 +1,41 @@
|
||||
package model
|
||||
|
||||
import "ems.agt/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:"password"`
|
||||
PasswordSha512 string `json:"passwordSha512"`
|
||||
ChangePasswordFlag int `json:"changePasswordFlag"`
|
||||
PasswordExpiration string `json:"passwordExpiration"`
|
||||
Status string `json:"status"`
|
||||
UserExpiration string `json:"userExpiration"`
|
||||
GroupName string `json:"groupId" xorm:"group_name"`
|
||||
Profile string `json:"profile" xorm:"profile"`
|
||||
Phone string `json:"phone" xorm:"phone"`
|
||||
CreateTime string `json:"createTime" xorm:"create_time"`
|
||||
UpdateTime string `json:"updateTime" xorm:"update_time"`
|
||||
|
||||
// 角色对象组
|
||||
Roles []model.SysRole `json:"roles"`
|
||||
// 角色ID - 参数提交绑定
|
||||
RoleID string `json:"roleId,omitempty"`
|
||||
// 角色组 - 参数提交绑定
|
||||
RoleIDs []string `json:"roleIds,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user