修正
This commit is contained in:
@@ -99,7 +99,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
[]rest.Middleware{serverCtx.AuthInterceptor},
|
||||
[]rest.Route{
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Method: http.MethodGet,
|
||||
Path: "/user/list",
|
||||
Handler: user.GetUserListHandler(serverCtx),
|
||||
},
|
||||
|
||||
@@ -111,8 +111,8 @@ type UserItem struct {
|
||||
}
|
||||
|
||||
type UserListRequest struct {
|
||||
Page int64 `json:"page"` // 分页页码
|
||||
PageSize int64 `json:"pageSize"` // 每页大小
|
||||
Page int64 `form:"page"` // 分页页码
|
||||
PageSize int64 `form:"pageSize"` // 每页大小
|
||||
}
|
||||
|
||||
type UserListResponse struct {
|
||||
@@ -121,6 +121,6 @@ type UserListResponse struct {
|
||||
}
|
||||
|
||||
type RechargeRequest struct {
|
||||
UserId int64 `json:userId`
|
||||
Amount int64 `json:amount`
|
||||
UserId int64 `json:"userId"`
|
||||
Amount int64 `json:"amount"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user