package user import ( "nixcn-cms/internal/exception" "nixcn-cms/service/service_user" "nixcn-cms/utils" "github.com/gin-gonic/gin" ) // Full retrieves the complete list of users directly from the database table. // // @Summary Get Full User Table // @Description Fetches all user records without pagination. This is typically used for administrative overview or data export. // @Tags User // @Accept json // @Produce json // @Success 200 {object} utils.RespStatus{data=service_user.UserTableResponse} "Successful retrieval of full user table" // @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error (Database Error)" // @Security ApiKeyAuth // @Router /user/full [get] 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) }