Fix 200 response exception builder
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -159,5 +159,12 @@ func Update(c *gin.Context) {
|
||||
// Update user info
|
||||
userData.UpdateByUserID(userId)
|
||||
|
||||
utils.HttpResponse(c, 200, "", "success")
|
||||
errorCode := new(exception.Builder).
|
||||
SetStatus(exception.StatusUser).
|
||||
SetService(exception.ServiceUser).
|
||||
SetEndpoint(exception.EndpointUserServiceUpdate).
|
||||
SetType(exception.TypeCommon).
|
||||
SetOriginal(exception.CommonSuccess).
|
||||
Build()
|
||||
utils.HttpResponse(c, 200, errorCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user