69 lines
2.0 KiB
Go
69 lines
2.0 KiB
Go
package v1
|
|
|
|
import (
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/response"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type UserListReq struct {
|
|
g.Meta `path:"/user/list" method:"get" tags:"代理商用户管理" summary:"下级用户列表" x-check-permission:"cpm:agent:user:list"`
|
|
model.AgentUserListParam
|
|
}
|
|
|
|
type UserExportReq struct {
|
|
g.Meta `path:"/user/export" method:"get" tags:"代理商用户管理" summary:"异步导出用户" x-check-permission:"cpm:agent:user:export"`
|
|
model.AgentUserListParam
|
|
}
|
|
|
|
type UserExportRes struct{}
|
|
|
|
type UserListRes struct {
|
|
response.PageResult
|
|
Data []*model.AgentUserListModel `json:"items"`
|
|
}
|
|
|
|
type UserViewReq struct {
|
|
g.Meta `path:"/user/view" method:"get" tags:"代理商用户管理" summary:"下级用户详情" x-check-permission:"cpm:agent:user:query"`
|
|
UserId int64 `json:"userId"`
|
|
}
|
|
|
|
type UserViewRes struct {
|
|
model.AgentUserViewModel
|
|
}
|
|
|
|
type UserAddReq struct {
|
|
g.Meta `path:"/user/add" method:"post" tags:"代理商用户管理" summary:"新增下级用户" x-check-permission:"cpm:agent:user:add"`
|
|
model.SysUserAddModel
|
|
}
|
|
|
|
type UserAddRes struct {
|
|
Data *model.AgentUserViewModel `json:"data"`
|
|
}
|
|
|
|
type UserUpdateReq struct {
|
|
g.Meta `path:"/user/update" method:"post" tags:"代理商用户管理" summary:"修改下级用户" x-check-permission:"cpm:agent:user:edit"`
|
|
model.SysUserUpdateModel
|
|
}
|
|
|
|
type UserUpdateRes struct {
|
|
Data *model.AgentUserViewModel `json:"data"`
|
|
}
|
|
|
|
type UserDeleteReq struct {
|
|
g.Meta `path:"/user/delete" method:"post" tags:"代理商用户管理" summary:"删除下级用户" x-check-permission:"cpm:agent:user:remove"`
|
|
UserId int64 `json:"userId"`
|
|
UserIds []int64 `json:"userIds"`
|
|
}
|
|
|
|
type UserDeleteRes struct{}
|
|
|
|
type UserResetPasswordReq struct {
|
|
g.Meta `path:"/user/resetPassword" method:"post" tags:"代理商用户管理" summary:"重置下级用户密码" x-check-permission:"cpm:agent:user:resetPwd"`
|
|
UserId int64 `json:"userId"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type UserResetPasswordRes struct{}
|