Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
删除用户信息 @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 ¶
导出用户信息 @Summary 用户信息回显,传id按id查,传username按用户名查 @Tags UserController @Router /api/export_user_infos [get]
func GetAllUsers ¶
获取所有用户信息 @Summary 获取所有用户信息 @Tags UserController @Accept json @Produce json @Success 200 {object} helpers.JsonObject @Router /api/get_all_users [get]
func GetUser ¶
用户信息回显 @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 ¶
用户信息分页查询 @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 ¶
用户登陆接口 @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 ¶
添加修改角色 @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 ¶
添加、修改用户信息 @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.