controller

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
}

type CategoryController

type CategoryController struct {
}

func (*CategoryController) Cache

func (*CategoryController) Calculate

func (cc *CategoryController) Calculate(ctx context.Context, c *app.RequestContext)

func (*CategoryController) First

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL