control

package
v0.0.0-...-da6f084 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(context *gin.Context)

删除用户信息 @Summary 删除用户信息 @Tags UserController @Accept json @Produce json @Param id query string true "用户记录id" @Success 200 {object} helpers.JsonObject @Router /api/delete_user [post]

func ExportUserInfos

func ExportUserInfos(context *gin.Context)

导出用户信息 @Summary 用户信息回显,传id按id查,传username按用户名查 @Tags UserController @Router /api/export_user_infos [get]

func GetAllUsers

func GetAllUsers(context *gin.Context)

获取所有用户信息 @Summary 获取所有用户信息 @Tags UserController @Accept json @Produce json @Success 200 {object} helpers.JsonObject @Router /api/get_all_users [get]

func GetUser

func GetUser(context *gin.Context)

用户信息回显 @Summary 用户信息回显,传id按id查,传username按用户名查 @Tags UserController @Accept json @Produce json @Param id query string false "用户记录id" @Param username query string false "用户名" @Success 200 {object} model.User @Router /api/get_user [get]

func GetUserPage

func GetUserPage(context *gin.Context)

用户信息分页查询 @Summary 用户信息分页查询 @Tags UserController @Accept json @Produce json @Param page query string true "页码" @Param page_size query string true "每页显示最大行" @Param username query string false "用户名" @Param phone query string false "电话" @Success 200 {object} helpers.PageBean @Router /api/get_user_page [get]

func Login

func Login(context *gin.Context)

用户登陆接口 @Summary 用户登陆接口 @Tags LoginController @Accept json @Produce json @Param username query string true "用户名" @Param password query string true "密码" @Success 200 {object} helpers.JsonObject @Router /login [post]

func SaveRole

func SaveRole(context *gin.Context)

添加修改角色 @Summary 添加修改角色 @Tags RoleController @Accept json @Produce json @Param id query string false "角色id,新增时id为空" @Param role_name query string true "角色名称" @Param role_key query string true "角色类别标识" @Param description query string true "角色描述信息" @Success 200 {object} helpers.JsonObject @Router /api/save_role [post]

func SaveUser

func SaveUser(context *gin.Context)

添加、修改用户信息 @Summary 添加、修改用户信息 @Tags UserController @Accept json @Produce json @Param id query string false "用户记录id,新增时id为空" @Param username query string true "用户名" @Param password query string true "密码" @Param phone query string true "电话号码" @Param email query string true "邮件" @Param merchant_no query string true "商户号" @Param role_id query string true "角色id" @Success 200 {object} helpers.JsonObject @Router /api/save_user [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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