Documentation ¶
Index ¶
- type Cache
- type CategoryController
- func (cc *CategoryController) Cache(ctx context.Context, c *app.RequestContext)
- func (cc *CategoryController) Calculate(ctx context.Context, c *app.RequestContext)
- func (cc *CategoryController) First(ctx context.Context, c *app.RequestContext)
- func (cc *CategoryController) GetList(ctx context.Context, c *app.RequestContext)
- func (cc *CategoryController) Index(ctx context.Context, c *app.RequestContext)
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryController ¶
type CategoryController struct { }
func (*CategoryController) Cache ¶
func (cc *CategoryController) Cache(ctx context.Context, c *app.RequestContext)
func (*CategoryController) Calculate ¶
func (cc *CategoryController) Calculate(ctx context.Context, c *app.RequestContext)
func (*CategoryController) First ¶
func (cc *CategoryController) First(ctx context.Context, c *app.RequestContext)
First 测试handler
@Summary 测试Summary @Description 测试Description @Accept application/json @Produce application/json @Router /category/first [get]
func (*CategoryController) GetList ¶
func (cc *CategoryController) GetList(ctx context.Context, c *app.RequestContext)
GetList 测试handler
@Summary 测试index
@ param id int
@Description 测试Description @Accept application/json @Produce application/json @Router /ping [get]
func (*CategoryController) Index ¶
func (cc *CategoryController) Index(ctx context.Context, c *app.RequestContext)
Index 测试handler
@Summary 测试index
@Param id query int true "id主键"
@Description 测试Description @Router /category/index [get]
type UserController ¶
type UserController struct { }
func (*UserController) Login ¶
func (uc *UserController) Login(ctx context.Context, c *app.RequestContext)
Login godoc @Summary 用户登录 @Description 用户登录 @Param data body request.Login true "用户名和密码" @contact.name GJing @contact.email gjing1st@gmail.com @Accept application/json @Success 200 {object} UserController "操作成功" @Failure 500 {object} string @Router /user/login [post]
func (*UserController) LoginTest ¶
func (uc *UserController) LoginTest(ctx context.Context, c *app.RequestContext)
Click to show internal directories.
Click to hide internal directories.