use abstraction response
This commit is contained in:
parent
a3039a8cc7
commit
12aa1f94b9
@ -177,10 +177,10 @@ func (server *Server) loginUser(ctx *gin.Context) {
|
||||
RefreshTokenExpiresAt: refreshTokenPayload.ExpiredAt,
|
||||
}
|
||||
|
||||
res := userLoginResponse{
|
||||
res := BaseApiRespond("succes", userLoginResponse{
|
||||
UserTokenResponse: tokenResponse,
|
||||
UserMerchantResponse: newUserMerchantResponse(user),
|
||||
}
|
||||
})
|
||||
|
||||
ctx.JSON(http.StatusOK, res)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user