system

package
v0.0.0-...-a74421f Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorityApi

type AuthorityApi struct{}

func (*AuthorityApi) CopyAuthority

func (a *AuthorityApi) CopyAuthority(c *gin.Context)

CopyAuthority @Tags Authority

@Summary	拷贝角色
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		response.SysAuthorityCopyResponse									true	"旧角色id, 新权限id, 新权限名, 新父角色id"
@Success	200		{object}	response.Response{data=systemRes.SysAuthorityResponse,msg=string}	"拷贝角色,返回包括系统角色详情"
@Router		/authority/copyAuthority [post]

func (*AuthorityApi) CreateAuthority

func (a *AuthorityApi) CreateAuthority(c *gin.Context)

CreateAuthority @Tags Authority

@Summary	创建角色
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAuthority													true	"权限id, 权限名, 父角色id"
@Success	200		{object}	response.Response{data=systemRes.SysAuthorityResponse,msg=string}	"创建角色,返回包括系统角色详情"
@Router		/authority/createAuthority [post]

func (*AuthorityApi) DeleteAuthority

func (a *AuthorityApi) DeleteAuthority(c *gin.Context)

DeleteAuthority @Tags Authority

@Summary	删除角色
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAuthority				true	"删除角色"
@Success	200		{object}	response.Response{msg=string}	"删除角色"
@Router		/authority/deleteAuthority [post]

func (*AuthorityApi) GetAuthorityList

func (a *AuthorityApi) GetAuthorityList(c *gin.Context)

GetAuthorityList @Tags Authority

@Summary	分页获取角色列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.PageInfo										true	"页码, 每页大小"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取角色列表,返回包括列表,总数,页码,每页数量"
@Router		/authority/getAuthorityList [post]

func (*AuthorityApi) SetDataAuthority

func (a *AuthorityApi) SetDataAuthority(c *gin.Context)

SetDataAuthority @Tags Authority

@Summary	设置角色资源权限
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAuthority				true	"设置角色资源权限"
@Success	200		{object}	response.Response{msg=string}	"设置角色资源权限"
@Router		/authority/setDataAuthority [post]

func (*AuthorityApi) UpdateAuthority

func (a *AuthorityApi) UpdateAuthority(c *gin.Context)

UpdateAuthority @Tags Authority

@Summary	更新角色信息
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAuthority													true	"权限id, 权限名, 父角色id"
@Success	200		{object}	response.Response{data=systemRes.SysAuthorityResponse,msg=string}	"更新角色信息,返回包括系统角色详情"
@Router		/authority/updateAuthority [post]

type AuthorityBtnApi

type AuthorityBtnApi struct{}

func (*AuthorityBtnApi) CanRemoveAuthorityBtn

func (a *AuthorityBtnApi) CanRemoveAuthorityBtn(c *gin.Context)

CanRemoveAuthorityBtn @Tags AuthorityBtn

@Summary	设置权限按钮
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{msg=string}	"删除成功"
@Router		/authorityBtn/canRemoveAuthorityBtn [post]

func (*AuthorityBtnApi) GetAuthorityBtn

func (a *AuthorityBtnApi) GetAuthorityBtn(c *gin.Context)

GetAuthorityBtn @Tags AuthorityBtn

@Summary	获取权限按钮
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.SysAuthorityBtnReq										true	"菜单id, 角色id, 选中的按钮id"
@Success	200		{object}	response.Response{data=response.SysAuthorityBtnRes,msg=string}	"返回列表成功"
@Router		/authorityBtn/getAuthorityBtn [post]

func (*AuthorityBtnApi) SetAuthorityBtn

func (a *AuthorityBtnApi) SetAuthorityBtn(c *gin.Context)

SetAuthorityBtn @Tags AuthorityBtn

@Summary	设置权限按钮
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.SysAuthorityBtnReq		true	"菜单id, 角色id, 选中的按钮id"
@Success	200		{object}	response.Response{msg=string}	"返回列表成功"
@Router		/authorityBtn/setAuthorityBtn [post]

type AuthorityMenuApi

type AuthorityMenuApi struct{}

func (*AuthorityMenuApi) AddBaseMenu

func (a *AuthorityMenuApi) AddBaseMenu(c *gin.Context)

AddBaseMenu @Tags Menu

@Summary	新增菜单
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysBaseMenu				true	"路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记"
@Success	200		{object}	response.Response{msg=string}	"新增菜单"
@Router		/menu/addBaseMenu [post]

func (*AuthorityMenuApi) AddMenuAuthority

func (a *AuthorityMenuApi) AddMenuAuthority(c *gin.Context)

AddMenuAuthority @Tags AuthorityMenu

@Summary	增加menu和角色关联关系
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.AddMenuAuthorityInfo	true	"角色ID"
@Success	200		{object}	response.Response{msg=string}	"增加menu和角色关联关系"
@Router		/menu/addMenuAuthority [post]

func (*AuthorityMenuApi) DeleteBaseMenu

func (a *AuthorityMenuApi) DeleteBaseMenu(c *gin.Context)

DeleteBaseMenu @Tags Menu

@Summary	删除菜单
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetById					true	"菜单id"
@Success	200		{object}	response.Response{msg=string}	"删除菜单"
@Router		/menu/deleteBaseMenu [post]

func (*AuthorityMenuApi) GetBaseMenuById

func (a *AuthorityMenuApi) GetBaseMenuById(c *gin.Context)

GetBaseMenuById @Tags Menu

@Summary	根据id获取菜单
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetById														true	"菜单id"
@Success	200		{object}	response.Response{data=systemRes.SysBaseMenuResponse,msg=string}	"根据id获取菜单,返回包括系统菜单列表"
@Router		/menu/getBaseMenuById [post]

func (*AuthorityMenuApi) GetBaseMenuTree

func (a *AuthorityMenuApi) GetBaseMenuTree(c *gin.Context)

GetBaseMenuTree @Tags AuthorityMenu

@Summary	获取用户动态路由
@Security	ApiKeyAuth
@Produce	application/json
@Param		data	body		request.Empty														true	"空"
@Success	200		{object}	response.Response{data=systemRes.SysBaseMenusResponse,msg=string}	"获取用户动态路由,返回包括系统菜单列表"
@Router		/menu/getBaseMenuTree [post]

func (*AuthorityMenuApi) GetMenu

func (a *AuthorityMenuApi) GetMenu(c *gin.Context)

GetMenu @Tags AuthorityMenu

@Summary	获取用户动态路由
@Security	ApiKeyAuth
@Produce	application/json
@Param		data	body		request.Empty													true	"空"
@Success	200		{object}	response.Response{data=systemRes.SysMenusResponse,msg=string}	"获取用户动态路由,返回包括系统菜单详情列表"
@Router		/menu/getMenu [post]

func (*AuthorityMenuApi) GetMenuAuthority

func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context)

GetMenuAuthority @Tags AuthorityMenu

@Summary	获取指定角色menu
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetAuthorityId										true	"角色ID"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"获取指定角色menu"
@Router		/menu/getMenuAuthority [post]

func (*AuthorityMenuApi) GetMenuList

func (a *AuthorityMenuApi) GetMenuList(c *gin.Context)

GetMenuList @Tags Menu

@Summary	分页获取基础menu列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.PageInfo										true	"页码, 每页大小"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取基础menu列表,返回包括列表,总数,页码,每页数量"
@Router		/menu/getMenuList [post]

func (*AuthorityMenuApi) UpdateBaseMenu

func (a *AuthorityMenuApi) UpdateBaseMenu(c *gin.Context)

UpdateBaseMenu @Tags Menu

@Summary	更新菜单
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysBaseMenu				true	"路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记"
@Success	200		{object}	response.Response{msg=string}	"更新菜单"
@Router		/menu/updateBaseMenu [post]

type AutoCodeApi

type AutoCodeApi struct{}

func (*AutoCodeApi) AutoPlug

func (autoApi *AutoCodeApi) AutoPlug(c *gin.Context)

AutoPlug

@Tags		AutoCode
@Summary	创建插件模板
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAutoCode											true	"创建插件模板"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"创建插件模板成功"
@Router		/autoCode/createPlug [post]

func (*AutoCodeApi) CreatePackage

func (autoApi *AutoCodeApi) CreatePackage(c *gin.Context)

CreatePackage

@Tags		AutoCode
@Summary	创建package
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAutoCode											true	"创建package"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"创建package成功"
@Router		/autoCode/createPackage [post]

func (*AutoCodeApi) CreateTemp

func (autoApi *AutoCodeApi) CreateTemp(c *gin.Context)

CreateTemp

@Tags		AutoCode
@Summary	自动代码模板
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.AutoCodeStruct	true	"创建自动代码"
@Success	200		{string}	string					"{"success":true,"data":{},"msg":"创建成功"}"
@Router		/autoCode/createTemp [post]

func (*AutoCodeApi) DelPackage

func (autoApi *AutoCodeApi) DelPackage(c *gin.Context)

DelPackage

@Tags		AutoCode
@Summary	删除package
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysAutoCode											true	"创建package"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"删除package成功"
@Router		/autoCode/delPackage [post]

func (*AutoCodeApi) GetColumn

func (autoApi *AutoCodeApi) GetColumn(c *gin.Context)

GetColumn

@Tags		AutoCode
@Summary	获取当前表所有字段
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"获取当前表所有字段"
@Router		/autoCode/getColumn [get]

func (*AutoCodeApi) GetDB

func (autoApi *AutoCodeApi) GetDB(c *gin.Context)

GetDB

@Tags		AutoCode
@Summary	获取当前所有数据库
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"获取当前所有数据库"
@Router		/autoCode/getDatabase [get]

func (*AutoCodeApi) GetPackage

func (autoApi *AutoCodeApi) GetPackage(c *gin.Context)

GetPackage

@Tags		AutoCode
@Summary	获取package
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"创建package成功"
@Router		/autoCode/getPackage [post]

func (*AutoCodeApi) GetTables

func (autoApi *AutoCodeApi) GetTables(c *gin.Context)

GetTables

@Tags		AutoCode
@Summary	获取当前数据库所有表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"获取当前数据库所有表"
@Router		/autoCode/getTables [get]

func (*AutoCodeApi) InstallPlugin

func (autoApi *AutoCodeApi) InstallPlugin(c *gin.Context)

func (*AutoCodeApi) PreviewTemp

func (autoApi *AutoCodeApi) PreviewTemp(c *gin.Context)

PreviewTemp

@Tags		AutoCode
@Summary	预览创建后的代码
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.AutoCodeStruct										true	"预览创建代码"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"预览创建后的代码"
@Router		/autoCode/preview [post]

type AutoCodeHistoryApi

type AutoCodeHistoryApi struct{}

func (*AutoCodeHistoryApi) Delete

func (a *AutoCodeHistoryApi) Delete(c *gin.Context)

Delete

@Tags		AutoCode
@Summary	删除回滚记录
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetById					true	"请求参数"
@Success	200		{object}	response.Response{msg=string}	"删除回滚记录"
@Router		/autoCode/delSysHistory [post]

func (*AutoCodeHistoryApi) First

func (a *AutoCodeHistoryApi) First(c *gin.Context)

First

@Tags		AutoCode
@Summary	获取meta信息
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetById												true	"请求参数"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"获取meta信息"
@Router		/autoCode/getMeta [post]

func (*AutoCodeHistoryApi) GetList

func (a *AutoCodeHistoryApi) GetList(c *gin.Context)

GetList

@Tags		AutoCode
@Summary	查询回滚记录
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.SysAutoHistory								true	"请求参数"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"查询回滚记录,返回包括列表,总数,页码,每页数量"
@Router		/autoCode/getSysHistory [post]

func (*AutoCodeHistoryApi) RollBack

func (a *AutoCodeHistoryApi) RollBack(c *gin.Context)

RollBack

@Tags		AutoCode
@Summary	回滚自动生成代码
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.RollBack				true	"请求参数"
@Success	200		{object}	response.Response{msg=string}	"回滚自动生成代码"
@Router		/autoCode/rollback [post]

type BaseApi

type BaseApi struct{}

func (*BaseApi) Captcha

func (b *BaseApi) Captcha(c *gin.Context)

Captcha

@Tags		Base
@Summary	生成验证码
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=systemRes.SysCaptchaResponse,msg=string}	"生成验证码,返回包括随机数id,base64,验证码长度"
@Router		/base/captcha [post]

func (*BaseApi) ChangePassword

func (b *BaseApi) ChangePassword(c *gin.Context)

ChangePassword @Tags SysUser

@Summary	用户修改密码
@Security	ApiKeyAuth
@Produce	application/json
@Param		data	body		systemReq.ChangePasswordReq		true	"用户名, 原密码, 新密码"
@Success	200		{object}	response.Response{msg=string}	"用户修改密码"
@Router		/user/changePassword [post]

func (*BaseApi) DeleteUser

func (b *BaseApi) DeleteUser(c *gin.Context)

DeleteUser @Tags SysUser

@Summary	删除用户
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetById					true	"用户ID"
@Success	200		{object}	response.Response{msg=string}	"删除用户"
@Router		/user/deleteUser [delete]

func (*BaseApi) GetUserInfo

func (b *BaseApi) GetUserInfo(c *gin.Context)

GetUserInfo @Tags SysUser

@Summary	获取用户信息
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"获取用户信息"
@Router		/user/getUserInfo [get]

func (*BaseApi) GetUserList

func (b *BaseApi) GetUserList(c *gin.Context)

GetUserList @Tags SysUser

@Summary	分页获取用户列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.PageInfo										true	"页码, 每页大小"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取用户列表,返回包括列表,总数,页码,每页数量"
@Router		/user/getUserList [post]

func (*BaseApi) Login

func (b *BaseApi) Login(c *gin.Context)

Login @Tags Base

@Summary	用户登录
@Produce	application/json
@Param		data	body		systemReq.Login												true	"用户名, 密码, 验证码"
@Success	200		{object}	response.Response{data=systemRes.LoginResponse,msg=string}	"返回包括用户信息,token,过期时间"
@Router		/base/login [post]

func (*BaseApi) Register

func (b *BaseApi) Register(c *gin.Context)

Register @Tags SysUser

@Summary	用户注册账号
@Produce	application/json
@Param		data	body		systemReq.Register												true	"用户名, 昵称, 密码, 角色ID"
@Success	200		{object}	response.Response{data=systemRes.SysUserResponse,msg=string}	"用户注册账号,返回包括用户信息"
@Router		/user/admin_register [post]

func (*BaseApi) ResetPassword

func (b *BaseApi) ResetPassword(c *gin.Context)

ResetPassword @Tags SysUser

@Summary	重置用户密码
@Security	ApiKeyAuth
@Produce	application/json
@Param		data	body		system.SysUser					true	"ID"
@Success	200		{object}	response.Response{msg=string}	"重置用户密码"
@Router		/user/resetPassword [post]

func (*BaseApi) SetSelfInfo

func (b *BaseApi) SetSelfInfo(c *gin.Context)

SetSelfInfo @Tags SysUser

@Summary	设置用户信息
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysUser												true	"ID, 用户名, 昵称, 头像链接"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"设置用户信息"
@Router		/user/SetSelfInfo [put]

func (*BaseApi) SetUserAuthorities

func (b *BaseApi) SetUserAuthorities(c *gin.Context)

SetUserAuthorities @Tags SysUser

@Summary	设置用户权限
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.SetUserAuthorities	true	"用户UUID, 角色ID"
@Success	200		{object}	response.Response{msg=string}	"设置用户权限"
@Router		/user/setUserAuthorities [post]

func (*BaseApi) SetUserAuthority

func (b *BaseApi) SetUserAuthority(c *gin.Context)

SetUserAuthority @Tags SysUser

@Summary	更改用户权限
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.SetUserAuth			true	"用户UUID, 角色ID"
@Success	200		{object}	response.Response{msg=string}	"设置用户权限"
@Router		/user/setUserAuthority [post]

func (*BaseApi) SetUserInfo

func (b *BaseApi) SetUserInfo(c *gin.Context)

SetUserInfo @Tags SysUser

@Summary	设置用户信息
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysUser												true	"ID, 用户名, 昵称, 头像链接"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"设置用户信息"
@Router		/user/setUserInfo [put]

func (*BaseApi) SetUserProjects

func (b *BaseApi) SetUserProjects(c *gin.Context)

SetUserProjects @Tags SysUser

@Summary	设置用户权限
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.SetUserProjects	true	"用户UUID, 项目ID"
@Success	200		{string}	string						"{"success":true,"data":{},"msg":"修改成功"}"
@Router		/user/setUserProjects [post]

func (*BaseApi) TokenNext

func (b *BaseApi) TokenNext(c *gin.Context, user system.SysUser)

TokenNext 登录以后签发jwt

type CasbinApi

type CasbinApi struct{}

func (*CasbinApi) GetPolicyPathByAuthorityId

func (cas *CasbinApi) GetPolicyPathByAuthorityId(c *gin.Context)

GetPolicyPathByAuthorityId @Tags Casbin

@Summary	获取权限列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.CasbinInReceive											true	"权限id, 权限模型列表"
@Success	200		{object}	response.Response{data=systemRes.PolicyPathResponse,msg=string}	"获取权限列表,返回包括casbin详情列表"
@Router		/casbin/getPolicyPathByAuthorityId [post]

func (*CasbinApi) UpdateCasbin

func (cas *CasbinApi) UpdateCasbin(c *gin.Context)

UpdateCasbin @Tags Casbin

@Summary	更新角色api权限
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.CasbinInReceive			true	"权限id, 权限模型列表"
@Success	200		{object}	response.Response{msg=string}	"更新角色api权限"
@Router		/casbin/UpdateCasbin [post]

type DBApi

type DBApi struct{}

func (*DBApi) CheckDB

func (i *DBApi) CheckDB(c *gin.Context)

CheckDB

@Tags		CheckDB
@Summary	初始化用户数据库
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"初始化用户数据库"
@Router		/init/checkdb [post]

func (*DBApi) InitDB

func (i *DBApi) InitDB(c *gin.Context)

InitDB

@Tags		InitDB
@Summary	初始化用户数据库
@Produce	application/json
@Param		data	body		request.InitDB					true	"初始化数据库参数"
@Success	200		{object}	response.Response{data=string}	"初始化用户数据库"
@Router		/init/initdb [post]

type DictionaryApi

type DictionaryApi struct{}

func (*DictionaryApi) CreateSysDictionary

func (s *DictionaryApi) CreateSysDictionary(c *gin.Context)

CreateSysDictionary @Tags SysDictionary

@Summary	创建SysDictionary
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysDictionary			true	"SysDictionary模型"
@Success	200		{object}	response.Response{msg=string}	"创建SysDictionary"
@Router		/sysDictionary/createSysDictionary [post]

func (*DictionaryApi) DeleteSysDictionary

func (s *DictionaryApi) DeleteSysDictionary(c *gin.Context)

DeleteSysDictionary @Tags SysDictionary

@Summary	删除SysDictionary
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysDictionary			true	"SysDictionary模型"
@Success	200		{object}	response.Response{msg=string}	"删除SysDictionary"
@Router		/sysDictionary/deleteSysDictionary [delete]

func (*DictionaryApi) FindSysDictionary

func (s *DictionaryApi) FindSysDictionary(c *gin.Context)

FindSysDictionary @Tags SysDictionary

@Summary	用id查询SysDictionary
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		system.SysDictionary										true	"ID或字典英名"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"用id查询SysDictionary"
@Router		/sysDictionary/findSysDictionary [get]

func (*DictionaryApi) GetSysDictionaryList

func (s *DictionaryApi) GetSysDictionaryList(c *gin.Context)

GetSysDictionaryList @Tags SysDictionary

@Summary	分页获取SysDictionary列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		request.SysDictionarySearch								true	"页码, 每页大小, 搜索条件"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量"
@Router		/sysDictionary/getSysDictionaryList [get]

func (*DictionaryApi) UpdateSysDictionary

func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context)

UpdateSysDictionary @Tags SysDictionary

@Summary	更新SysDictionary
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysDictionary			true	"SysDictionary模型"
@Success	200		{object}	response.Response{msg=string}	"更新SysDictionary"
@Router		/sysDictionary/updateSysDictionary [put]

type DictionaryDetailApi

type DictionaryDetailApi struct{}

func (*DictionaryDetailApi) CreateSysDictionaryDetail

func (s *DictionaryDetailApi) CreateSysDictionaryDetail(c *gin.Context)

CreateSysDictionaryDetail @Tags SysDictionaryDetail

@Summary	创建SysDictionaryDetail
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysDictionaryDetail		true	"SysDictionaryDetail模型"
@Success	200		{object}	response.Response{msg=string}	"创建SysDictionaryDetail"
@Router		/sysDictionaryDetail/createSysDictionaryDetail [post]

func (*DictionaryDetailApi) DeleteSysDictionaryDetail

func (s *DictionaryDetailApi) DeleteSysDictionaryDetail(c *gin.Context)

DeleteSysDictionaryDetail @Tags SysDictionaryDetail

@Summary	删除SysDictionaryDetail
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysDictionaryDetail		true	"SysDictionaryDetail模型"
@Success	200		{object}	response.Response{msg=string}	"删除SysDictionaryDetail"
@Router		/sysDictionaryDetail/deleteSysDictionaryDetail [delete]

func (*DictionaryDetailApi) FindSysDictionaryDetail

func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context)

FindSysDictionaryDetail @Tags SysDictionaryDetail

@Summary	用id查询SysDictionaryDetail
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		system.SysDictionaryDetail									true	"用id查询SysDictionaryDetail"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"用id查询SysDictionaryDetail"
@Router		/sysDictionaryDetail/findSysDictionaryDetail [get]

func (*DictionaryDetailApi) GetSysDictionaryDetailList

func (s *DictionaryDetailApi) GetSysDictionaryDetailList(c *gin.Context)

GetSysDictionaryDetailList @Tags SysDictionaryDetail

@Summary	分页获取SysDictionaryDetail列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		request.SysDictionaryDetailSearch						true	"页码, 每页大小, 搜索条件"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量"
@Router		/sysDictionaryDetail/getSysDictionaryDetailList [get]

func (*DictionaryDetailApi) UpdateSysDictionaryDetail

func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context)

UpdateSysDictionaryDetail @Tags SysDictionaryDetail

@Summary	更新SysDictionaryDetail
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysDictionaryDetail		true	"更新SysDictionaryDetail"
@Success	200		{object}	response.Response{msg=string}	"更新SysDictionaryDetail"
@Router		/sysDictionaryDetail/updateSysDictionaryDetail [put]

type JwtApi

type JwtApi struct{}

func (*JwtApi) JsonInBlacklist

func (j *JwtApi) JsonInBlacklist(c *gin.Context)

JsonInBlacklist @Tags Jwt

@Summary	jwt加入黑名单
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{msg=string}	"jwt加入黑名单"
@Router		/jwt/jsonInBlacklist [post]

type OperationRecordApi

type OperationRecordApi struct{}

func (*OperationRecordApi) CreateSysOperationRecord

func (s *OperationRecordApi) CreateSysOperationRecord(c *gin.Context)

CreateSysOperationRecord @Tags SysOperationRecord

@Summary	创建SysOperationRecord
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysOperationRecord		true	"创建SysOperationRecord"
@Success	200		{object}	response.Response{msg=string}	"创建SysOperationRecord"
@Router		/sysOperationRecord/createSysOperationRecord [post]

func (*OperationRecordApi) DeleteSysOperationRecord

func (s *OperationRecordApi) DeleteSysOperationRecord(c *gin.Context)

DeleteSysOperationRecord @Tags SysOperationRecord

@Summary	删除SysOperationRecord
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysOperationRecord		true	"SysOperationRecord模型"
@Success	200		{object}	response.Response{msg=string}	"删除SysOperationRecord"
@Router		/sysOperationRecord/deleteSysOperationRecord [delete]

func (*OperationRecordApi) DeleteSysOperationRecordByIds

func (s *OperationRecordApi) DeleteSysOperationRecordByIds(c *gin.Context)

DeleteSysOperationRecordByIds @Tags SysOperationRecord

@Summary	批量删除SysOperationRecord
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.IdsReq					true	"批量删除SysOperationRecord"
@Success	200		{object}	response.Response{msg=string}	"批量删除SysOperationRecord"
@Router		/sysOperationRecord/deleteSysOperationRecordByIds [delete]

func (*OperationRecordApi) FindSysOperationRecord

func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context)

FindSysOperationRecord @Tags SysOperationRecord

@Summary	用id查询SysOperationRecord
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		system.SysOperationRecord									true	"Id"
@Success	200		{object}	response.Response{data=map[string]interface{},msg=string}	"用id查询SysOperationRecord"
@Router		/sysOperationRecord/findSysOperationRecord [get]

func (*OperationRecordApi) GetSysOperationRecordList

func (s *OperationRecordApi) GetSysOperationRecordList(c *gin.Context)

GetSysOperationRecordList @Tags SysOperationRecord

@Summary	分页获取SysOperationRecord列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		request.SysOperationRecordSearch						true	"页码, 每页大小, 搜索条件"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量"
@Router		/sysOperationRecord/getSysOperationRecordList [get]

type ProjectApi

type ProjectApi struct {
}

func (*ProjectApi) CreateProject

func (projectApi *ProjectApi) CreateProject(c *gin.Context)

CreateProject 创建Project

@Tags		Project
@Summary	创建Project
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.Project	true	"创建Project"
@Success	200		{string}	string			"{"success":true,"data":{},"msg":"获取成功"}"
@Router		/project/createProject [post]

func (*ProjectApi) DeleteProject

func (projectApi *ProjectApi) DeleteProject(c *gin.Context)

DeleteProject 删除Project

@Tags		Project
@Summary	删除Project
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.Project	true	"删除Project"
@Success	200		{string}	string			"{"success":true,"data":{},"msg":"删除成功"}"
@Router		/project/deleteProject [delete]

func (*ProjectApi) DeleteProjectAuth

func (projectApi *ProjectApi) DeleteProjectAuth(c *gin.Context)

func (*ProjectApi) DeleteProjectByIds

func (projectApi *ProjectApi) DeleteProjectByIds(c *gin.Context)

DeleteProjectByIds 批量删除Project

@Tags		Project
@Summary	批量删除Project
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.IdsReq	true	"批量删除Project"
@Success	200		{string}	string			"{"success":true,"data":{},"msg":"批量删除成功"}"
@Router		/project/deleteProjectByIds [delete]

func (*ProjectApi) FindKey

func (projectApi *ProjectApi) FindKey(c *gin.Context)

func (*ProjectApi) FindProject

func (projectApi *ProjectApi) FindProject(c *gin.Context)

FindProject 用id查询Project

@Tags		Project
@Summary	用id查询Project
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		system.Project	true	"用id查询Project"
@Success	200		{string}	string			"{"success":true,"data":{},"msg":"查询成功"}"
@Router		/project/findProject [get]

func (*ProjectApi) GetProjectList

func (projectApi *ProjectApi) GetProjectList(c *gin.Context)

GetProjectList 分页获取Project列表

@Tags		Project
@Summary	分页获取Project列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	query		interfacecaseReq.ProjectSearch	true	"分页获取Project列表"
@Success	200		{string}	string							"{"success":true,"data":{},"msg":"获取成功"}"
@Router		/project/getProjectList [get]

func (*ProjectApi) GetProjectUserList

func (projectApi *ProjectApi) GetProjectUserList(c *gin.Context)

func (*ProjectApi) SetKey

func (projectApi *ProjectApi) SetKey(c *gin.Context)

func (*ProjectApi) SetUserProjectAuth

func (projectApi *ProjectApi) SetUserProjectAuth(c *gin.Context)

func (*ProjectApi) UpdateProject

func (projectApi *ProjectApi) UpdateProject(c *gin.Context)

UpdateProject 更新Project

@Tags		Project
@Summary	更新Project
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.Project	true	"更新Project"
@Success	200		{string}	string			"{"success":true,"data":{},"msg":"更新成功"}"
@Router		/project/updateProject [put]

type SystemApi

type SystemApi struct{}

func (*SystemApi) GetServerInfo

func (s *SystemApi) GetServerInfo(c *gin.Context)

GetServerInfo @Tags System

@Summary	获取服务器信息
@Security	ApiKeyAuth
@Produce	application/json
@Success	200	{object}	response.Response{data=map[string]interface{},msg=string}	"获取服务器信息"
@Router		/system/getServerInfo [post]

func (*SystemApi) GetSystemConfig

func (s *SystemApi) GetSystemConfig(c *gin.Context)

GetSystemConfig @Tags System

@Summary	获取配置文件内容
@Security	ApiKeyAuth
@Produce	application/json
@Success	200	{object}	response.Response{data=systemRes.SysConfigResponse,msg=string}	"获取配置文件内容,返回包括系统配置"
@Router		/system/getSystemConfig [post]

func (*SystemApi) ReloadSystem

func (s *SystemApi) ReloadSystem(c *gin.Context)

ReloadSystem @Tags System

@Summary	重启系统
@Security	ApiKeyAuth
@Produce	application/json
@Success	200	{object}	response.Response{msg=string}	"重启系统"
@Router		/system/reloadSystem [post]

func (*SystemApi) SetSystemConfig

func (s *SystemApi) SetSystemConfig(c *gin.Context)

SetSystemConfig @Tags System

@Summary	设置配置文件内容
@Security	ApiKeyAuth
@Produce	application/json
@Param		data	body		system.System					true	"设置配置文件内容"
@Success	200		{object}	response.Response{data=string}	"设置配置文件内容"
@Router		/system/setSystemConfig [post]

type SystemApiApi

type SystemApiApi struct{}

func (*SystemApiApi) CreateApi

func (s *SystemApiApi) CreateApi(c *gin.Context)

CreateApi @Tags SysApi

@Summary	创建基础api
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysApi					true	"api路径, api中文描述, api组, 方法"
@Success	200		{object}	response.Response{msg=string}	"创建基础api"
@Router		/api/createApi [post]

func (*SystemApiApi) DeleteApi

func (s *SystemApiApi) DeleteApi(c *gin.Context)

DeleteApi @Tags SysApi

@Summary	删除api
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysApi					true	"ID"
@Success	200		{object}	response.Response{msg=string}	"删除api"
@Router		/api/deleteApi [post]

func (*SystemApiApi) DeleteApisByIds

func (s *SystemApiApi) DeleteApisByIds(c *gin.Context)

DeleteApisByIds @Tags SysApi

@Summary	删除选中Api
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.IdsReq					true	"ID"
@Success	200		{object}	response.Response{msg=string}	"删除选中Api"
@Router		/api/deleteApisByIds [delete]

func (*SystemApiApi) GetAllApis

func (s *SystemApiApi) GetAllApis(c *gin.Context)

GetAllApis @Tags SysApi

@Summary	获取所有的Api 不分页
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Success	200	{object}	response.Response{data=systemRes.SysAPIListResponse,msg=string}	"获取所有的Api 不分页,返回包括api列表"
@Router		/api/getAllApis [post]

func (*SystemApiApi) GetApiById

func (s *SystemApiApi) GetApiById(c *gin.Context)

GetApiById @Tags SysApi

@Summary	根据id获取api
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		request.GetById										true	"根据id获取api"
@Success	200		{object}	response.Response{data=systemRes.SysAPIResponse}	"根据id获取api,返回包括api详情"
@Router		/api/getApiById [post]

func (*SystemApiApi) GetApiList

func (s *SystemApiApi) GetApiList(c *gin.Context)

GetApiList @Tags SysApi

@Summary	分页获取API列表
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		systemReq.SearchApiParams								true	"分页获取API列表"
@Success	200		{object}	response.Response{data=response.PageResult,msg=string}	"分页获取API列表,返回包括列表,总数,页码,每页数量"
@Router		/api/getApiList [post]

func (*SystemApiApi) UpdateApi

func (s *SystemApiApi) UpdateApi(c *gin.Context)

UpdateApi @Tags SysApi

@Summary	修改基础api
@Security	ApiKeyAuth
@accept		application/json
@Produce	application/json
@Param		data	body		system.SysApi					true	"api路径, api中文描述, api组, 方法"
@Success	200		{object}	response.Response{msg=string}	"修改基础api"
@Router		/api/updateApi [post]

Jump to

Keyboard shortcuts

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