Documentation ¶
Index ¶
- type DefaultController
- func (c *DefaultController) CreateGroup(g *gin.Context)
- func (c *DefaultController) CreateJoinCode(g *gin.Context)
- func (c *DefaultController) CreateTodo(ctx *gin.Context)
- func (c *DefaultController) DeleteGroup(g *gin.Context)
- func (c *DefaultController) GetTodo(g *gin.Context)
- func (c DefaultController) Hello(g *gin.Context)
- func (c *DefaultController) JoinGroup(g *gin.Context)
- func (c *DefaultController) LeaveGroup(g *gin.Context)
- func (c DefaultController) Login(g *gin.Context)
- func (c DefaultController) Register(g *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultController ¶
type DefaultController struct { *gorm.DB *permmanager.PermManager }
func Setup ¶
func Setup(db *gorm.DB, e *casbin.Enforcer) *DefaultController
func (*DefaultController) CreateGroup ¶
func (c *DefaultController) CreateGroup(g *gin.Context)
func (*DefaultController) CreateJoinCode ¶
func (c *DefaultController) CreateJoinCode(g *gin.Context)
func (*DefaultController) CreateTodo ¶
func (c *DefaultController) CreateTodo(ctx *gin.Context)
func (*DefaultController) DeleteGroup ¶
func (c *DefaultController) DeleteGroup(g *gin.Context)
func (*DefaultController) GetTodo ¶
func (c *DefaultController) GetTodo(g *gin.Context)
@Summary Register user @Tags Authentication @Schemes @Accept mpfd @Produce json @Success 200 {object} models.Todo @Router /todo/{id} [get] @Param id path int true "todo id"
func (DefaultController) Hello ¶
func (c DefaultController) Hello(g *gin.Context)
@Summary this is not sum @Schemes @Description do ping @Tags testingtag @Accept json @Produce json @Success 200 {object} resp.BaseOk @Router / [get]
func (*DefaultController) JoinGroup ¶
func (c *DefaultController) JoinGroup(g *gin.Context)
func (*DefaultController) LeaveGroup ¶
func (c *DefaultController) LeaveGroup(g *gin.Context)
func (DefaultController) Login ¶
func (c DefaultController) Login(g *gin.Context)
func (DefaultController) Register ¶
func (c DefaultController) Register(g *gin.Context)
Click to show internal directories.
Click to hide internal directories.