14 lines
237 B
Go
14 lines
237 B
Go
package admin
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
type BaseController struct {
|
|
}
|
|
|
|
func (con BaseController) succes(c *gin.Context) {
|
|
c.String(200, "成功")
|
|
}
|
|
func (con BaseController) error(c *gin.Context) {
|
|
c.String(200, "失败")
|
|
}
|