kernel

package
v0.0.0-...-a7becc3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminAdd

func AdminAdd(ctx echo.Context) error

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

func AdminAll(ctx echo.Context) error

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

func AdminDrop(ctx echo.Context) error

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

func AdminEdit(ctx echo.Context) error

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

func AdminEditLock(ctx echo.Context) error

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

func AdminExist(ctx echo.Context) error

AdminExist doc @Auth mgmt @Tags kernel @Summary 获取某个用户信息 @Param num query string true "账号" @Success 200 {object} utils.Reply "返回数据" @Router /api/admin/exist [get]

func AdminGet

func AdminGet(ctx echo.Context) error

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

func AdminPage(ctx echo.Context) error

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

func AuthEdit(ctx echo.Context) error

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

func AuthEditPasswd(ctx echo.Context) error

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

func AuthGet(ctx echo.Context) error

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

func AuthGrant(ctx echo.Context) error

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

func AuthLogin(ctx echo.Context) error

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

func AuthVcode(ctx echo.Context) error

AuthVcode doc @Tags kernel,auth @Summary 验证码 @Accept mpfd @Success 200 {object} utils.Reply{data=string} "返回数据" @Router /api/auth/vcode [get]

func DictAdd

func DictAdd(ctx echo.Context) error

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

func DictDrop(ctx echo.Context) error

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

func DictEdit(ctx echo.Context) error

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

func DictGet(ctx echo.Context) error

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

func DictPage(ctx echo.Context) error

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

func DictVal(ctx echo.Context) error

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

func GrantAdd(ctx echo.Context) error

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

func GrantDrop(ctx echo.Context) error

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

func GrantEdit(ctx echo.Context) error

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

func GrantGet(ctx echo.Context) error

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

func GrantPage(ctx echo.Context) error

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

func GrantTree(ctx echo.Context) error

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

func LogPage(ctx echo.Context) error

------------------------------------------------------ 记录 ------------------------------------------------------ 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

func RoleAdd(ctx echo.Context) error

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

func RoleAll(ctx echo.Context) error

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

func RoleDrop(ctx echo.Context) error

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

func RoleEdit(ctx echo.Context) error

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

func RoleGet(ctx echo.Context) error

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

func RoleGrantAll(ctx echo.Context) error

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

func RoleGrantEdit(ctx echo.Context) error

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

func RolePage(ctx echo.Context) error

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

func StatusGo(ctx echo.Context) error

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

func UploadFile(ctx echo.Context) error

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

func UploadImage(ctx echo.Context) error

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.

Jump to

Keyboard shortcuts

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