|
|
@@ -369,8 +369,8 @@ func AddMessageBoard(c *gin.Context) {
|
|
|
|
|
|
// UpdateUserAccountStatusReq 更新用户状态请求参数
|
|
|
type UpdateUserAccountStatusReq struct {
|
|
|
- UserID int `json:"userID" binding:"required"`
|
|
|
- AccountStatus int `json:"accountStatus" binding:"required"`
|
|
|
+ UserID int `form:"userID" binding:"required"`
|
|
|
+ AccountStatus int `form:"accountStatus" binding:"required"`
|
|
|
}
|
|
|
|
|
|
// UpdateUserAccountStatus 更新用户状态
|
|
|
@@ -378,7 +378,7 @@ type UpdateUserAccountStatusReq struct {
|
|
|
// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param userID query int true "用户ID"
|
|
|
-// @Param accountStatus query string true "账户状态 - 4:正常 6:注销(停用)"
|
|
|
+// @Param accountStatus query int true "账户状态 - 4:正常 6:注销(停用)"
|
|
|
// @Success 200 {object} app.Response
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /User/UpdateUserAccountStatus [post]
|
|
|
@@ -403,5 +403,5 @@ func UpdateUserAccountStatus(c *gin.Context) {
|
|
|
|
|
|
// 执行成功
|
|
|
logger.GetLogger().Debugln("UpdateUserAccountStatus successed: %v", "ok")
|
|
|
- appG.Response(http.StatusOK, e.SUCCESS, "")
|
|
|
+ appG.Response(http.StatusOK, e.SUCCESS, "ok")
|
|
|
}
|