Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2022 Changes in this version + type Api struct + Svc Service + func NewApi(s Service) *Api + func (a *Api) Get(c *gin.Context, req, data interface{}) + func (a *Api) GetHandleFunc(req, data interface{}) func(*gin.Context) + func (a *Api) Insert(c *gin.Context, req interface{}) + func (a *Api) InsertHandleFunc(req interface{}) func(*gin.Context) + func (a *Api) JSON(c *gin.Context, resp interface{}) + func (a *Api) List(c *gin.Context, req, data interface{}) + func (a *Api) ListHandleFunc(req, data interface{}) func(*gin.Context) + func (a *Api) Remove(c *gin.Context, req interface{}) + func (a *Api) RemoveHandleFunc(req interface{}) func(*gin.Context) + func (a *Api) Removes(c *gin.Context, req interface{}) + func (a *Api) RemovesHandleFunc(req interface{}) func(*gin.Context) + func (a *Api) ShouldBindJSON(c *gin.Context, req interface{}) bool + func (a *Api) ShouldBindQuery(c *gin.Context, req interface{}) bool + func (a *Api) Status(c *gin.Context, req interface{}) + func (a *Api) StatusHandleFunc(req interface{}) func(*gin.Context) + func (a *Api) Update(c *gin.Context, req interface{}) + func (a *Api) UpdateHandleFunc(req interface{}) func(*gin.Context) + type Service interface + Get func(req, data interface{}) *contexts.RESPONSE + Insert func(req interface{}) *contexts.RESPONSE + List func(req, data interface{}) *contexts.RESPONSEWITHCOUNT + Remove func(req interface{}) *contexts.RESPONSE + Update func(req interface{}) *contexts.RESPONSE + type UserApi struct + Svc *service.UserService + func NewUserApi() *UserApi + func (u *UserApi) Get(c *gin.Context) + func (u *UserApi) Insert(c *gin.Context) + func (u *UserApi) List(c *gin.Context) + func (u *UserApi) Login(c *gin.Context) + func (u *UserApi) Remove(c *gin.Context) + func (u *UserApi) Removes(c *gin.Context) + func (u *UserApi) Status(c *gin.Context) + func (u *UserApi) Update(c *gin.Context)