|
|
@@ -34,11 +34,17 @@ type UserInfoReq struct {
|
|
|
ReqType int `json:"req_type"` // 请求类型 设备预约(1:预约资格 2:优先预约权) 主从用户管理(1:主用户查询 2:从用户查询)
|
|
|
IsSelf string `json:"isSelf"`
|
|
|
}
|
|
|
+
|
|
|
type UserInfoRsp struct {
|
|
|
Records []BaseUserInfo `json:"records"`
|
|
|
Total int `json:"total"'`
|
|
|
}
|
|
|
|
|
|
+type SearchUserInfoRsp struct {
|
|
|
+ Records []SearchUserInfo `json:"records"`
|
|
|
+ Total int `json:"total"'`
|
|
|
+}
|
|
|
+
|
|
|
// 添加、删除主从用户
|
|
|
type AddMainOrSubReq struct {
|
|
|
Ids []int `json:"ids"` // 用户Id列表
|
|
|
@@ -122,3 +128,8 @@ type BaseUserInfo struct {
|
|
|
Unit string `orm:"Unit" json:"unit"` //
|
|
|
DeletedAt *gtime.Time `orm:"DeletedAt" json:"deletedAt"` // 删除时间
|
|
|
}
|
|
|
+
|
|
|
+type SearchUserInfo struct {
|
|
|
+ BaseUserInfo
|
|
|
+ MasterId int `orm:"MasterId" json:"master_id"` // 主用户Id
|
|
|
+}
|