system

package
v0.0.0-...-37838c1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 17 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)

@Tags Authority @Summary 拷贝角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body response.SysAuthorityCopyResponse true "旧角色id, 新权限id, 新权限名, 新父角色id" @Success 200 {string} string "{"success":true,"data":{},"msg":"拷贝成功"}" @Router /authority/copyAuthority [post]

func (*AuthorityApi) CreateAuthority

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

@Tags Authority @Summary 创建角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysAuthority true "权限id, 权限名, 父角色id" @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" @Router /authority/createAuthority [post]

func (*AuthorityApi) DeleteAuthority

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

@Tags Authority @Summary 删除角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysAuthority true "删除角色" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /authority/deleteAuthority [post]

func (*AuthorityApi) GetAuthorityList

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

@Tags Authority @Summary 分页获取角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.PageInfo true "页码, 每页大小" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /authority/getAuthorityList [post]

func (*AuthorityApi) SetDataAuthority

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

@Tags Authority @Summary 设置角色资源权限 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysAuthority true "设置角色资源权限" @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}" @Router /authority/setDataAuthority [post]

func (*AuthorityApi) UpdateAuthority

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

@Tags Authority @Summary 更新角色信息 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysAuthority true "权限id, 权限名, 父角色id" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /authority/updateAuthority [post]

type AuthorityMenuApi

type AuthorityMenuApi struct {
}

func (*AuthorityMenuApi) AddBaseMenu

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

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

func (*AuthorityMenuApi) AddMenuAuthority

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

@Tags AuthorityMenu @Summary 增加menu和角色关联关系 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.AddMenuAuthorityInfo true "角色ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"添加成功"}" @Router /menu/addMenuAuthority [post]

func (*AuthorityMenuApi) DeleteBaseMenu

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

@Tags Menu @Summary 删除菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.GetById true "菜单id" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /menu/deleteBaseMenu [post]

func (*AuthorityMenuApi) GetBaseMenuById

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

@Tags Menu @Summary 根据id获取菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.GetById true "菜单id" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /menu/getBaseMenuById [post]

func (*AuthorityMenuApi) GetBaseMenuTree

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

@Tags AuthorityMenu @Summary 获取用户动态路由 @Security ApiKeyAuth @Produce application/json @Param data body request.Empty true "空" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /menu/getBaseMenuTree [post]

func (*AuthorityMenuApi) GetMenu

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

@Tags AuthorityMenu @Summary 获取用户动态路由 @Security ApiKeyAuth @Produce application/json @Param data body request.Empty true "空" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /menu/getMenu [post]

func (*AuthorityMenuApi) GetMenuAuthority

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

@Tags AuthorityMenu @Summary 获取指定角色menu @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.GetAuthorityId true "角色ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /menu/getMenuAuthority [post]

func (*AuthorityMenuApi) GetMenuList

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

@Tags Menu @Summary 分页获取基础menu列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.PageInfo true "页码, 每页大小" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /menu/getMenuList [post]

func (*AuthorityMenuApi) UpdateBaseMenu

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

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

type AutoCodeApi

type AutoCodeApi struct {
}

func (*AutoCodeApi) CreateTemp

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

@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) DelSysHistory

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

@Tags AutoCode @Summary 删除回滚记录 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.AutoHistoryByID true "删除回滚记录" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /autoCode/delSysHistory [post]

func (*AutoCodeApi) GetColumn

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

@Tags AutoCode @Summary 获取当前表所有字段 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /autoCode/getColumn [get]

func (*AutoCodeApi) GetDB

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

@Tags AutoCode @Summary 获取当前所有数据库 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /autoCode/getDatabase [get]

func (*AutoCodeApi) GetMeta

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

@Tags AutoCode @Summary 回滚 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.AutoHistoryByID true "获取meta信息" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /autoCode/getMeta [post]

func (*AutoCodeApi) GetSysHistory

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

@Tags AutoCode @Summary 查询回滚记录 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.SysAutoHistory true "查询回滚记录" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /autoCode/getSysHistory [post]

func (*AutoCodeApi) GetTables

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

@Tags AutoCode @Summary 获取当前数据库所有表 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /autoCode/getTables [get]

func (*AutoCodeApi) PreviewTemp

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

@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/preview [post]

func (*AutoCodeApi) RollBack

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

@Tags AutoCode @Summary 回滚 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.AutoHistoryByID true "回滚自动生成代码" @Success 200 {string} string "{"success":true,"data":{},"msg":"回滚成功"}" @Router /autoCode/rollback [post]

type BaseApi

type BaseApi struct {
}

func (*BaseApi) Captcha

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

@Tags Base @Summary 生成验证码 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"验证码获取成功"}" @Router /base/captcha [post]

func (*BaseApi) ChangePassword

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

@Tags SysUser @Summary 用户修改密码 @Security ApiKeyAuth @Produce application/json @Param data body systemReq.ChangePasswordStruct true "用户名, 原密码, 新密码" @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}" @Router /user/changePassword [post]

func (*BaseApi) DeleteUser

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

@Tags SysUser @Summary 删除用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.GetById true "用户ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /user/deleteUser [delete]

func (*BaseApi) GetUserInfo

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

@Tags SysUser @Summary 获取用户信息 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /user/getUserInfo [get]

func (*BaseApi) GetUserList

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

@Tags SysUser @Summary 分页获取用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.PageInfo true "页码, 每页大小" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /user/getUserList [post]

func (*BaseApi) Login

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

@Tags Base @Summary 用户登录 @Produce application/json @Param data body systemReq.Login true "用户名, 密码, 验证码" @Success 200 {string} string "{"success":true,"data":{},"msg":"登陆成功"}" @Router /base/login [post]

func (*BaseApi) Register

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

@Tags SysUser @Summary 用户注册账号 @Produce application/json @Param data body systemReq.Register true "用户名, 昵称, 密码, 角色ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"注册成功"}" @Router /user/register [post]

func (*BaseApi) SetUserAuthorities

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

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

func (*BaseApi) SetUserAuthority

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

@Tags SysUser @Summary 更改用户权限 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.SetUserAuth true "用户UUID, 角色ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}" @Router /user/setUserAuthority [post]

func (*BaseApi) SetUserInfo

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

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

type CasbinApi

type CasbinApi struct {
}

func (*CasbinApi) GetPolicyPathByAuthorityId

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

@Tags Casbin @Summary 获取权限列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.CasbinInReceive true "权限id, 权限模型列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /casbin/getPolicyPathByAuthorityId [post]

func (*CasbinApi) UpdateCasbin

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

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

type DBApi

type DBApi struct {
}

func (*DBApi) CheckDB

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

@Tags CheckDB @Summary 初始化用户数据库 @Produce application/json @Success 200 {string} string "{"code":0,"data":{},"msg":"探测完成"}" @Router /init/checkdb [post]

func (*DBApi) InitDB

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

@Tags InitDB @Summary 初始化用户数据库 @Produce application/json @Param data body request.InitDB true "初始化数据库参数" @Success 200 {string} string "{"code":0,"data":{},"msg":"自动创建数据库成功"}" @Router /init/initdb [post]

type DictionaryApi

type DictionaryApi struct {
}

func (*DictionaryApi) CreateSysDictionary

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

@Tags SysDictionary @Summary 创建SysDictionary @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysDictionary true "SysDictionary模型" @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" @Router /sysDictionary/createSysDictionary [post]

func (*DictionaryApi) DeleteSysDictionary

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

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

func (*DictionaryApi) FindSysDictionary

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

@Tags SysDictionary @Summary 用id查询SysDictionary @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.SysDictionary true "ID或字典英名" @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" @Router /sysDictionary/findSysDictionary [get]

func (*DictionaryApi) GetSysDictionaryList

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

@Tags SysDictionary @Summary 分页获取SysDictionary列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.SysDictionarySearch true "页码, 每页大小, 搜索条件" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /sysDictionary/getSysDictionaryList [get]

func (*DictionaryApi) UpdateSysDictionary

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

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

type DictionaryDetailApi

type DictionaryDetailApi struct {
}

func (*DictionaryDetailApi) CreateSysDictionaryDetail

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

@Tags SysDictionaryDetail @Summary 创建SysDictionaryDetail @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysDictionaryDetail true "SysDictionaryDetail模型" @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" @Router /sysDictionaryDetail/createSysDictionaryDetail [post]

func (*DictionaryDetailApi) DeleteSysDictionaryDetail

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

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

func (*DictionaryDetailApi) FindSysDictionaryDetail

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

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

func (*DictionaryDetailApi) GetSysDictionaryDetailList

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

@Tags SysDictionaryDetail @Summary 分页获取SysDictionaryDetail列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.SysDictionaryDetailSearch true "页码, 每页大小, 搜索条件" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /sysDictionaryDetail/getSysDictionaryDetailList [get]

func (*DictionaryDetailApi) UpdateSysDictionaryDetail

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

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

type JwtApi

type JwtApi struct {
}

func (*JwtApi) JsonInBlacklist

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

@Tags Jwt @Summary jwt加入黑名单 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"拉黑成功"}" @Router /jwt/jsonInBlacklist [post]

type OperationRecordApi

type OperationRecordApi struct {
}

func (*OperationRecordApi) CreateSysOperationRecord

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

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

func (*OperationRecordApi) DeleteSysOperationRecord

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

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

func (*OperationRecordApi) DeleteSysOperationRecordByIds

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

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

func (*OperationRecordApi) FindSysOperationRecord

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

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

func (*OperationRecordApi) GetSysOperationRecordList

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

@Tags SysOperationRecord @Summary 分页获取SysOperationRecord列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.SysOperationRecordSearch true "页码, 每页大小, 搜索条件" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /sysOperationRecord/getSysOperationRecordList [get]

type SystemApi

type SystemApi struct {
}

func (*SystemApi) GetServerInfo

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

@Tags System @Summary 获取服务器信息 @Security ApiKeyAuth @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /system/getServerInfo [post]

func (*SystemApi) GetSystemConfig

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

@Tags System @Summary 获取配置文件内容 @Security ApiKeyAuth @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /system/getSystemConfig [post]

func (*SystemApi) ReloadSystem

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

@Tags System @Summary 重启系统 @Security ApiKeyAuth @Produce application/json @Success 200 {string} string "{"code":0,"data":{},"msg":"重启系统成功"}" @Router /system/reloadSystem [post]

func (*SystemApi) SetSystemConfig

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

@Tags System @Summary 设置配置文件内容 @Security ApiKeyAuth @Produce application/json @Param data body system.System true "设置配置文件内容" @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}" @Router /system/setSystemConfig [post]

type SystemApiApi

type SystemApiApi struct {
}

func (*SystemApiApi) CreateApi

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

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

func (*SystemApiApi) DeleteApi

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

@Tags SysApi @Summary 删除api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysApi true "ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /api/deleteApi [post]

func (*SystemApiApi) DeleteApisByIds

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

@Tags SysApi @Summary 删除选中Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsReq true "ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /api/deleteApisByIds [delete]

func (*SystemApiApi) GetAllApis

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

@Tags SysApi @Summary 获取所有的Api 不分页 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /api/getAllApis [post]

func (*SystemApiApi) GetApiById

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

@Tags SysApi @Summary 根据id获取api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.GetById true "根据id获取api" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /api/getApiById [post]

func (*SystemApiApi) GetApiList

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

@Tags SysApi @Summary 分页获取API列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body systemReq.SearchApiParams true "分页获取API列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /api/getApiList [post]

func (*SystemApiApi) UpdateApi

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

@Tags SysApi @Summary 创建基础api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.SysApi true "api路径, api中文描述, api组, 方法" @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}" @Router /api/updateApi [post]

Jump to

Keyboard shortcuts

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