You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
281 B

package admin
import "github.com/gin-gonic/gin"
type BaseController struct{}
func (con BaseController) Success(c *gin.Context, data interface{}) {
c.JSON(200, data)
}
func (con BaseController) Error(c *gin.Context) {
c.JSON(200, gin.H{
"message": "admin list error",
})
}