25 lines
572 B
Go
25 lines
572 B
Go
package user
|
|
|
|
import (
|
|
"nixcn-cms/internal/exception"
|
|
"nixcn-cms/service/service_user"
|
|
"nixcn-cms/utils"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func (self *UserHandler) Full(c *gin.Context) {
|
|
userTablePayload := &service_user.UserTablePayload{
|
|
Context: c,
|
|
}
|
|
|
|
result := self.svc.GetUserFullTable(userTablePayload)
|
|
|
|
if result.Common.Exception.Original != exception.CommonSuccess {
|
|
utils.HttpResponse(c, result.Common.HttpCode, result.Common.Exception.String())
|
|
return
|
|
}
|
|
|
|
utils.HttpResponse(c, result.Common.HttpCode, result.Common.Exception.String(), result.Data)
|
|
}
|