system

package
v0.0.0-...-594642b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const INDEX = `` /* 559-byte string literal not displayed */

Variables

This section is empty.

Functions

func GenerateCaptchaHandler

func GenerateCaptchaHandler(c *gin.Context)

@Summary 获取验证码 @Description 获取验证码 @Tags 系统 @Accept json @Produce json @Success 200 {string} string "{"code": 200,"data": [...]}" @Router /v1/captcha [get]

func GetRole

func GetRole(c *gin.Context)

@Summary 获取Role数据 @Description 获取JSON @Tags 系统 @Param roleId path string false "roleId" @Success 200 {string} string "{"code": 200, "data": [...]}" @Router /v1/role [get] @Security Bearer

func GetSetting

func GetSetting(c *gin.Context)

@Summary 查询系统信息 @Description 获取JSON @Tags 系统 @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/setting [get]

func HelloWorld

func HelloWorld(c *gin.Context)

func Info

func Info(c *gin.Context)

@Summary 获取用户信息 @Description 获取用户信息 @Tags 系统 @Success 200 {object} app.Response{data=response.InfoResponse} @Router /v1/info [get] @Security Bearer

func MenuRole(c *gin.Context)

@Summary 根据角色名称获取菜单列表数据(侧边栏使用) @Description 获取JSON @Tags 菜单 @Param id path int true "id" @Success 200 {object} app.Response{data=[]models.Menu} "desc" @Failure 401 {object} app.Response" @Router /api/v1/menurole [get] @Security Bearer

func Register

func Register(c *gin.Context)

@Summary 用户注册账号 @Description 用户注册接口 @Tags 系统 @Accept json @Produce json @Param data body server.Register true "param" @Success 200 {object} app.Response" @Failure 402 {object} app.Response" @Router /v1/register [post]

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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