Documentation
¶
Index ¶
- func AdminAdd(ctx echo.Context) error
- func AdminAll(ctx echo.Context) error
- func AdminDrop(ctx echo.Context) error
- func AdminEdit(ctx echo.Context) error
- func AdminEditLock(ctx echo.Context) error
- func AdminExist(ctx echo.Context) error
- func AdminGet(ctx echo.Context) error
- func AdminPage(ctx echo.Context) error
- func AuthEdit(ctx echo.Context) error
- func AuthEditPasswd(ctx echo.Context) error
- func AuthGet(ctx echo.Context) error
- func AuthGrant(ctx echo.Context) error
- func AuthLogin(ctx echo.Context) error
- func AuthVcode(ctx echo.Context) error
- func DictAdd(ctx echo.Context) error
- func DictDrop(ctx echo.Context) error
- func DictEdit(ctx echo.Context) error
- func DictGet(ctx echo.Context) error
- func DictPage(ctx echo.Context) error
- func DictVal(ctx echo.Context) error
- func GrantAdd(ctx echo.Context) error
- func GrantDrop(ctx echo.Context) error
- func GrantEdit(ctx echo.Context) error
- func GrantGet(ctx echo.Context) error
- func GrantPage(ctx echo.Context) error
- func GrantTree(ctx echo.Context) error
- func LogPage(ctx echo.Context) error
- func RoleAdd(ctx echo.Context) error
- func RoleAll(ctx echo.Context) error
- func RoleDrop(ctx echo.Context) error
- func RoleEdit(ctx echo.Context) error
- func RoleGet(ctx echo.Context) error
- func RoleGrantAll(ctx echo.Context) error
- func RoleGrantEdit(ctx echo.Context) error
- func RolePage(ctx echo.Context) error
- func StatusGo(ctx echo.Context) error
- func UploadFile(ctx echo.Context) error
- func UploadImage(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminAdd ¶
AdminAdd doc @Auth mgmt @Tags kernel @Summary 添加admin信息 @Param token query string true "token" @Param body body model.Admin true "请求数据" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/add [post]
func AdminAll ¶
AdminAll AdminPage doc @Auth mgmt @Tags kernel @Summary 获取admin分页数据 @Param query query model.AdminMultArgs true "请求数据" @Param token query string true "token" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/all [get]
func AdminDrop ¶
AdminDrop doc @Auth mgmt @Tags kernel @Summary 删除admin信息 @Param id query int true "id" @Param token query string true "token" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/drop [post]
func AdminEdit ¶
AdminEdit doc @Auth mgmt @Tags kernel @Summary 修改admin信息 @Param token query string true "token" @Param body body model.Admin true "请求数据" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/edit [post]
func AdminEditLock ¶
AdminEditLock doc @Auth mgmt mgmt @Tags kernel @Summary 修改用户锁定状态 @Param token query string true "token" @Param body body object{id=int,lock=bool} true "json" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/admin/edit/lock [post]
func AdminExist ¶
AdminExist doc @Auth mgmt @Tags kernel @Summary 获取某个用户信息 @Param num query string true "账号" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/exist [get]
func AdminGet ¶
AdminGet doc @Auth mgmt @Tags kernel @Summary 通过id获取admin信息 @Param id query int true "id" @Param token query string true "token" @Success 200 {object} utils.Reply{data=model.Admin} "返回数据" @Router /api/admin/get [get]
func AdminPage ¶
AdminPage doc @Auth mgmt @Tags kernel @Summary 获取admin分页数据 @Param token query string true "token" @Param query query model.AdminRolePageArgs true "请求数据" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/page [get]
func AuthEdit ¶
AuthEdit doc @Tags kernel,auth @Auth mgmt @Summary 修改自己的信息 @Param Authorization header string true "登录凭证" @Success 200 {object} utils.Reply "返回数据" @Param body body model.Admin true "request" @Router /api/auth/edit [post]
func AuthEditPasswd ¶
AuthEditPasswd doc @Tags kernel,auth @Auth mgmt @Summary 修改自己的密码 @Param Authorization header string true "登录凭证" @Param body body model.PasswdArgs true "请求数据" @Success 200 {object} utils.Reply "返回数据" @Router /api/auth/edit/passwd [post]
func AuthGet ¶
AuthGet doc @Tags kernel @Auth mgmt @Summary 当前登录信息 @Param Authorization header string true "登录凭证" @Success 200 {object} utils.Reply{data=model.Admin} "返回数据" @Router /api/auth/get [get]
func AuthGrant ¶
AuthGrant doc @Tags kernel,auth @Auth @Summary 获取当前用户的授权 @Param Authorization header string true "登录凭证" @Success 200 {object} utils.Reply{data=[]string} "返回数据" @Router /api/auth/grant [get]
func AuthLogin ¶
AuthLogin doc @Tags kernel,auth @Summary 登陆 @Accept json @Param body body model.AdminLoginArgs true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/auth/login [post]
func AuthVcode ¶
AuthVcode doc @Tags kernel,auth @Summary 验证码 @Accept mpfd @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/auth/vcode [get]
func DictAdd ¶
DictAdd doc @Auth mgmt @Tags kernel @Summary 添加字典 @Param token query string true "token" @Param body body model.Dict true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/dict/add [post]
func DictDrop ¶
DictDrop doc @Auth mgmt @Tags kernel @Summary 通过key删除单条字典 @Param key query string true "key" @Param token query string true "token" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/dict/drop [post]
func DictEdit ¶
DictEdit doc @Auth mgmt @Tags kernel @Summary 修改字典 @Param token query string true "token" @Param body body model.Dict true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/dict/edit [post]
func DictGet ¶
DictGet doc @Tags kernel @Summary 通过id获取单条字典 @Param key path string true "key" @Success 200 {object} utils.Reply{data=model.Dict} "返回数据" @Router /api/dict/get/:key [get]
func DictPage ¶
DictPage doc @Auth mgmt @Tags kernel @Summary 获取字典分页 @Param query query model.Page true "请求数据" @Success 200 {object} utils.Reply{data=[]model.Dict} "返回数据" @Router /api/dict/page [get]
func DictVal ¶
DictGet doc @Tags kernel @Summary 通过id获取单条字典 @Param key path string true "key" @Success 200 {object} utils.Reply{data=model.Dict} "返回数据" @Router /api/dict/:key [get]
func GrantAdd ¶
GrantAdd doc @Auth mgmt @Tags kernel @Summary 添加授权信息 @Param token query string true "token" @Param body body model.Grant true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/grant/add [post]
func GrantDrop ¶
GrantDrop doc @Auth mgmt @Tags kernel @Summary 通过id删除单条授权信息 @Param token query string true "token" @Param body body model.IptId true "json" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/grant/drop [post]
func GrantEdit ¶
GrantEdit doc @Auth mgmt @Tags kernel @Summary 修改授权信息 @Param token query string true "token" @Param body body model.Grant true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/grant/edit [post]
func GrantGet ¶
GrantGet doc @Auth mgmt @Tags kernel @Summary 通过id获取单条授权信息 @Param id query int true "id" @Param token query string true "token" @Success 200 {object} utils.Reply{data=model.Grant} "返回数据" @Router /api/grant/get [get]
func GrantPage ¶
GrantPage doc @Auth mgmt @Tags kernel @Summary 获取授权分页信息 @Param token query string true "token" @Param query query model.Page true "请求数据" @Success 200 {object} utils.Reply{data=[]model.Grant} "返回数据" @Param token query string true "token" @Router /api/grant/page [get]
func GrantTree ¶
GrantAll doc @Auth mgmt @Tags kernel @Summary 获取所有授权树 @Param token query string true "token" @Success 200 {object} utils.Reply{data=[]model.Grant} "返回数据" @Router /api/grant/tree [get]
func LogPage ¶
------------------------------------------------------ 记录 ------------------------------------------------------ LogPage doc @Auth mgmt @Tags kernel @Summary 获取日志分页 @Param query query model.Page true "请求数据" @Success 200 {object} utils.Reply{data=[]model.Log} "返回数据" @Router /api/log/page [get]
func RoleAdd ¶
RoleAdd doc @Auth mgmt @Tags kernel @Summary 添加角色信息 @Param token query string true "token" @Param body body model.Role true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/role/add [post]
func RoleAll ¶
RoleAll doc @Auth mgmt @Tags kernel @Summary 获取所有角色信息 @Param token query string true "token" @Success 200 {object} utils.Reply{data=[]model.Role} "返回数据" @Router /api/role/all [get]
func RoleDrop ¶
RoleDrop doc @Auth mgmt @Tags kernel @Summary 通过id删除单条角色信息 @Param token query string true "token" @Param body body model.IptId true "json" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/role/drop [post]
func RoleEdit ¶
RoleEdit doc @Auth mgmt @Tags kernel @Summary 修改角色信息 @Param token query string true "token" @Param body body model.Role true "请求数据" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/role/edit [post]
func RoleGet ¶
RoleGet doc @Auth mgmt @Tags kernel @Summary 通过id获取单条角色信息 @Param id query int true "id" @Param token query string true "token" @Success 200 {object} utils.Reply{data=model.Role} "返回数据" @Router /api/role/get [get]
func RoleGrantAll ¶
RoleGrantAll doc @Auth mgmt @Tags kernel @Summary 通过角色id获取所有角色授权信息 @Param role_id query int true "id" @Param token query string true "token" @Success 200 {object} utils.Reply{data=model.Role} "返回数据" @Router /api/role/grant/all [get]
func RoleGrantEdit ¶
RoleGrantEdit doc @Auth mgmt @Tags kernel @Summary 修改角色授权信息 @Param id query int true "id" @Param token query string true "token" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/role/grant/edit [post]
func RolePage ¶
RolePage doc @Auth mgmt @Tags kernel @Summary 获取角色分页信息 @Param token query string true "token" @Param query query model.Page true "请求数据" @Success 200 {object} utils.Reply{data=[]model.Role} "返回数据" @Param token query string true "token" @Router /api/role/page [get]
func StatusGo ¶
StatusGo doc @Auth @Tags kernel @Summary 获取服务器go信息 @Param token query string true "token" @Success 200 {object} utils.Reply{data=model.StateGo} "返回数据" @Router /api/status/go [get] @Router /api/status/app [get]
func UploadFile ¶
UploadFile doc @Auth @Tags kernel @Summary 上传文件 @Accept mpfd @Param file formData file true "file" @Param token query string true "token" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/upload/file [post]
func UploadImage ¶
UploadImage doc @Auth @Tags kernel @Summary 上传图片并裁剪 @Accept mpfd @Param file formData file true "file" @Param token query string true "token" @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/upload/image [post]
Types ¶
This section is empty.