52 lines
1.3 KiB
Go
52 lines
1.3 KiB
Go
package entitys
|
|
|
|
// AdvicerAdminLoginReq 登录请求
|
|
type AdvicerAdminLoginReq struct {
|
|
Account string `json:"account"`
|
|
Pwd string `json:"pwd"`
|
|
}
|
|
|
|
// AdvicerAdminLoginResp 登录响应
|
|
type AdvicerAdminLoginResp struct {
|
|
Token string `json:"token"`
|
|
AdminID int32 `json:"admin_id"`
|
|
Name string `json:"name"`
|
|
Account string `json:"account"`
|
|
Type int32 `json:"type"`
|
|
}
|
|
|
|
// AdvicerAdminAddReq 新增管理员
|
|
type AdvicerAdminAddReq struct {
|
|
Type int32 `json:"type"`
|
|
Name string `json:"name"`
|
|
Account string `json:"account"`
|
|
Pwd string `json:"pwd"`
|
|
Status int32 `json:"status"`
|
|
}
|
|
|
|
// AdvicerAdminUpdateReq 更新管理员
|
|
type AdvicerAdminUpdateReq struct {
|
|
AdminID int `json:"admin_id"`
|
|
Type int `json:"type"`
|
|
Name string `json:"name"`
|
|
Account string `json:"account"`
|
|
Pwd string `json:"pwd"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
// AdvicerAdminListReq 查询管理员列表
|
|
type AdvicerAdminListReq struct {
|
|
AdminID int `json:"admin_id"`
|
|
Name string `json:"name"`
|
|
Account string `json:"account"`
|
|
Type int `json:"type"`
|
|
Status int `json:"status"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|
|
|
|
// AdvicerAdminDelReq 删除管理员
|
|
type AdvicerAdminDelReq struct {
|
|
AdminID int `json:"admin_id"`
|
|
}
|