新增添加医生
This commit is contained in:
@@ -20,6 +20,7 @@ type User struct {
|
||||
Avatar string `json:"avatar"` // 头像
|
||||
LoginIP string `json:"login_ip"` // 登陆ip
|
||||
LastLoginAt model.LocalTime `json:"last_login_at"` // 最后登陆时间
|
||||
CreatedBy string `json:"created_by"` // 创建者id(后台用户表id null:自己注册)
|
||||
CreatedAt model.LocalTime `json:"created_at"` // 创建时间
|
||||
UpdatedAt model.LocalTime `json:"updated_at"` // 修改时间
|
||||
}
|
||||
@@ -40,6 +41,7 @@ func UserResponse(user *model.User) *User {
|
||||
Avatar: config.C.Oss.OssCustomDomainName + "/" + user.Avatar,
|
||||
LoginIP: user.LoginIp,
|
||||
LastLoginAt: user.LastLoginAt,
|
||||
CreatedBy: user.CreatedBy,
|
||||
CreatedAt: user.CreatedAt,
|
||||
UpdatedAt: user.UpdatedAt,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user