Documentation ¶
Index ¶
- func CaptchaHandler(c *gin.Context)
- func ConfigCreateHandler(c *gin.Context)
- func ConfigDeleteHandler(c *gin.Context)
- func ConfigGetHandler(c *gin.Context)
- func ConfigGetWithKeyHandler(c *gin.Context)
- func ConfigQueryHandler(c *gin.Context)
- func ConfigUpdateHandler(c *gin.Context)
- func DBColumnQueryHandler(c *gin.Context)
- func DBTableQueryHandler(c *gin.Context)
- func DeptCreateHandler(c *gin.Context)
- func DeptDeleteHandler(c *gin.Context)
- func DeptGetDeptTreeHandler(c *gin.Context)
- func DeptGetDeptTreeWithRoleHandler(c *gin.Context)
- func DeptGetHandler(c *gin.Context)
- func DeptQueryHandler(c *gin.Context)
- func DeptUpdateHandler(c *gin.Context)
- func DictDataCreateHandler(c *gin.Context)
- func DictDataDeleteHandler(c *gin.Context)
- func DictDataGetHandler(c *gin.Context)
- func DictDataGetWithTypeHandler(c *gin.Context)
- func DictDataQueryHandler(c *gin.Context)
- func DictDataUpdateHandler(c *gin.Context)
- func DictTypeCreateHandler(c *gin.Context)
- func DictTypeDeleteHandler(c *gin.Context)
- func DictTypeGetHandler(c *gin.Context)
- func DictTypeGetWithOptionSelectHandler(c *gin.Context)
- func DictTypeQueryHandler(c *gin.Context)
- func DictTypeUpdateHandler(c *gin.Context)
- func FileDirCreateHandler(c *gin.Context)
- func FileDirDeleteHandler(c *gin.Context)
- func FileDirGetHandler(c *gin.Context)
- func FileDirQueryHandler(c *gin.Context)
- func FileDirUpdateHandler(c *gin.Context)
- func FileInfoCreateHandler(c *gin.Context)
- func FileInfoDeleteHandler(c *gin.Context)
- func FileInfoGetHandler(c *gin.Context)
- func FileInfoQueryHandler(c *gin.Context)
- func FileInfoUpdateHandler(c *gin.Context)
- func GenerateGenCodeHandler(c *gin.Context)
- func GenerateGenConfigHandler(c *gin.Context)
- func GeneratePreviewHandler(c *gin.Context)
- func GetUserInfoHandler(auth auth.Auther) gin.HandlerFunc
- func Index(c *gin.Context)
- func LogOutHandler(auth auth.Auther) gin.HandlerFunc
- func LoginHandler(au auth.Auther) gin.HandlerFunc
- func LoginLogCreateHandler(c *gin.Context)
- func LoginLogDeleteHandler(c *gin.Context)
- func LoginLogGetHandler(c *gin.Context)
- func LoginLogQueryHandler(c *gin.Context)
- func LoginLogUpdateHandler(c *gin.Context)
- func MenuCreateHandler(c *gin.Context)
- func MenuDeleteHandler(c *gin.Context)
- func MenuGetHandler(c *gin.Context)
- func MenuMenusResourcesTreeHandler(c *gin.Context)
- func MenuMenusTreeHandler(c *gin.Context)
- func MenuQueryHandler(c *gin.Context)
- func MenuUpdateHandler(c *gin.Context)
- func MonitorServerInfoHandler(c *gin.Context)
- func OperLogCreateHandler(c *gin.Context)
- func OperLogDeleteHandler(c *gin.Context)
- func OperLogGetHandler(c *gin.Context)
- func OperLogQueryHandler(c *gin.Context)
- func PostCreateHandler(c *gin.Context)
- func PostDeleteHandler(c *gin.Context)
- func PostGetHandler(c *gin.Context)
- func PostQueryHandler(c *gin.Context)
- func PostUpdateHandler(c *gin.Context)
- func RefreshTokenHandler(au auth.Auther) gin.HandlerFunc
- func RoleCreateHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
- func RoleDeleteHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
- func RoleGetHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
- func RoleQueryHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
- func RoleUpdateDataScopeHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
- func RoleUpdateHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
- func SendSmsHandler(c *gin.Context)
- func SettingCreateHandler(c *gin.Context)
- func SettingGetHandler(c *gin.Context)
- func TablesCreateHandler(c *gin.Context)
- func TablesDeleteHandler(c *gin.Context)
- func TablesGetHandler(c *gin.Context)
- func TablesGetInfoHandler(c *gin.Context)
- func TablesQueryHandler(c *gin.Context)
- func TablesTreeHandler(c *gin.Context)
- func TablesUpdateHandler(c *gin.Context)
- func UploadFileHandler(c *gin.Context)
- func UserCreateHandler(c *gin.Context)
- func UserDeleteHandler(c *gin.Context)
- func UserGetHandler(c *gin.Context)
- func UserGetProfileHandler(c *gin.Context)
- func UserQueryHandler(c *gin.Context)
- func UserResetPasswordHandler(c *gin.Context)
- func UserUpdateAvatarHandler(c *gin.Context)
- func UserUpdateHandler(c *gin.Context)
- type Config
- type DBColumn
- type DBTable
- type Dept
- type DictData
- type DictType
- type FileDir
- type FileInfo
- type FileResponse
- type Generate
- type Login
- type LoginLog
- type Menu
- type Monitor
- type OperLog
- type Post
- type Role
- type Setting
- type Tables
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigCreateHandler ¶
ConfigCreateHandler 创建数据 @Tags 参数设置 @Security Bearer @Summary 添加参数信息 @Param body body model.Config true "参数信息" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/config [post]
func ConfigDeleteHandler ¶
ConfigDeleteHandler 删除数据 @Tags 参数设置 @Security Bearer @Summary 删除参数信息 @Param id path string true "id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/config/{id} [delete]
func ConfigGetHandler ¶
ConfigGetHandler 查询指定数据 @Tags 参数设置 @Security Bearer @Summary 通过ID获取参数信息 @Param id path int true "参数ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/config/{id} [get]
func ConfigGetWithKeyHandler ¶
ConfigGetWithKeyHandler 查询指定类型数据 @Tags 参数设置 @Security Bearer @Summary 通过key值获取参数信息 @Param configName path int true "参数键值" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/config_key [get]
func ConfigQueryHandler ¶
ConfigQueryHandler 查询数据 @Tags 参数设置 @Security Bearer @Summary 参数列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param configName query string false "configName" @Param configKey query string false "configKey" @Param configType query string false "configType" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/config [get]
func ConfigUpdateHandler ¶
ConfigUpdateHandler 更新数据 @Tags 参数设置 @Security Bearer @Summary 更新参数信息 @Param body body model.Config true "参数信息" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/config [put]
func DBColumnQueryHandler ¶
DBColumnQueryHandler 查询数据 @Tags 工具 @Security Bearer @Summary 分页列表数据 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param tableName query string false "数据表名称" @Success 200 {string} string "{code: 200, data: [...]}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/db/columns [get]
func DBTableQueryHandler ¶
DBTableQueryHandler 查询数据 @Tags 工具 @Security Bearer @Summary 数据库表分页列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param tableName query string false "数据表名称" @Success 200 {string} string "{code: 200, data: [...]}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/db/tables [get]
func DeptCreateHandler ¶
DeptCreateHandler 创建数据 @Tags 部门 @Security Bearer @Summary 添加部门 @Param body body model.Dept true "部门信息" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/depts [post]
func DeptDeleteHandler ¶
DeptDeleteHandler 删除数据 @Tags 部门 @Security Bearer @Summary 删除部门 @Param id path string true "id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/depts/{id} [delete]
func DeptGetDeptTreeHandler ¶
DeptGetDeptTreeHandler 部门树 @Tags 部门 @Security Bearer @Summary 查看部门树数据 @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/dept_tree [get]
func DeptGetDeptTreeWithRoleHandler ¶
DeptGetDeptTreeWithRoleHandler 角色部门树 @Tags 部门 @Security Bearer @Summary 查看角色部门树数据 @Param id path string true "角色ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/role_dept_treeselect/:id [get]
func DeptGetHandler ¶
DeptGetHandler 查询指定数据 @Tags 部门 @Security Bearer @Summary 通过ID获取部门信息 @Param id path int true "部门ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/depts/{id} [get]
func DeptQueryHandler ¶
DeptQueryHandler 查询数据 @Tags 部门 @Security Bearer @Summary 部门列表数据 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param deptName query string false "部门名称" @Param status query string false "status" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/depts [get]
func DeptUpdateHandler ¶
DeptUpdateHandler 更新数据 @Tags 部门 @Security Bearer @Summary 修改部门 @Param body body model.Dept true "部门信息" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/depts [put]
func DictDataCreateHandler ¶
DictDataCreateHandler 创建数据 @Tags 字典数据 @Security Bearer @Summary 添加字典数据 @Param body body model.DictData true "字典数据" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/dicts [post]
func DictDataDeleteHandler ¶
DictDataDeleteHandler 删除数据 @Tags 字典数据 @Security Bearer @Summary 删除字典数据 @Param id path string true "id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/dicts/{id} [delete]
func DictDataGetHandler ¶
DictDataGetHandler 查询指定数据 @Tags 字典数据 @Security Bearer @Summary 通过编码获取字典数据 @Param id path int true "字典编码" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/dicts/{id} [get]
func DictDataGetWithTypeHandler ¶
DictDataGetWithTypeHandler 查询指定类型数据 @Tags 字典数据 @Security Bearer @Summary 通过字典类型获取字典数据 @Param type path int true "字典类型" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/dict_datas/{type} [get]
func DictDataQueryHandler ¶
DictDataQueryHandler 查询数据 @Tags 字典数据 @Security Bearer @Summary 字典数据列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param status query string false "status" @Param id query string false "字典码" @Param dictType query string false "字典类型" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/dicts [get]
func DictDataUpdateHandler ¶
DictDataUpdateHandler 更新数据 @Tags 字典数据 @Security Bearer @Summary 更新字典数据 @Param body body model.DictData true "字典数据" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/dicts [put]
func DictTypeCreateHandler ¶
DictTypeCreateHandler 创建数据 @Tags 字典类型 @Security Bearer @Summary 添加字典类型 @Param body body model.DictType true "字典类型" @Success 200 {string} string "{code: 200, msg: 添加成功}" @Failure 200 {string} string "{code: -1, msg: 添加失败}" @Router /api/v1/dict_types [post]
func DictTypeDeleteHandler ¶
DictTypeDeleteHandler 删除数据 @Tags 字典类型 @Security Bearer @Summary 删除字典类型 @Param id path string true "字典ID" @Success 200 {string} string "{code: 200, msg: 删除成功}" @Failure 200 {string} string "{code: -1, msg: 删除失败}" @Router /api/v1/dict_types/{id} [delete]
func DictTypeGetHandler ¶
DictTypeGetHandler 查询指定数据 @Tags 字典类型 @Security Bearer @Summary 通过字典ID获取字典类型 @Param id path int true "字典类型编码" @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/dict_types/{id} [get]
func DictTypeGetWithOptionSelectHandler ¶
DictTypeGetWithOptionSelectHandler 查询选择项数据 @Tags 字典类型 @Security Bearer @Summary 通过字典类型获取选择项数据 @Param id path int true "字典类型ID" @Query name query string false "字典类型名称" @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/dict_options/{id} [get]
func DictTypeQueryHandler ¶
DictTypeQueryHandler 查询数据 @Tags 字典类型 @Security Bearer @Summary 字典类型列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param name query string false "字典名称" @Param type query string false "字典类型" @Success 200 {string} string "{code: 200, data: [...]}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/dict_types [get]
func DictTypeUpdateHandler ¶
DictTypeUpdateHandler 更新数据 @Tags 字典类型 @Security Bearer @Summary 更新字典类型 @Param body body model.DictType true "字典类型数据" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/dict_types [put]
func FileDirCreateHandler ¶
FileDirCreateHandler 创建数据 @Tags 文件夹 @Security Bearer @Summary 添加文件夹数据 @Param body body model.FileDir true "文件夹信息" @Success 200 {string} string "{code: 200, msg: 添加成功}" @Failure 200 {string} string "{code: -1, msg: 添加失败}" @Router /api/v1/file_dirs [post]
func FileDirDeleteHandler ¶
FileDirDeleteHandler 删除数据 @Tags 文件夹 @Security Bearer @Summary 删除文件夹信息 @Param id path string true "文件夹ID"" @Success 200 {string} string "{code: 200, msg: 删除成功}" @Failure 200 {string} string "{code: -1, msg: 删除失败}" @Router /api/v1/file_dirs/{id} [delete]
func FileDirGetHandler ¶
FileDirGetHandler 查询指定数据 @Tags 文件夹 @Security Bearer @Summary 通过ID取文件夹信息 @Param id path int true "文件夹ID" @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/file_dirs/{id} [get]
func FileDirQueryHandler ¶
FileDirQueryHandler 查询数据 @Tags 文件夹 @Security Bearer @Summary 文件夹列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param id query string false "id" @Param pid query string false "pid" @Success 200 {string} string "{code: 200, data: [...]}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/file_dirs [get]
func FileDirUpdateHandler ¶
FileDirUpdateHandler 更新数据 @Tags 文件夹 @Security Bearer @Summary 更新文件夹信息 @Param body body model.FileDir true "文件夹信息" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/file_dirs [put]
func FileInfoCreateHandler ¶
FileInfoCreateHandler 创建数据 @Tags 文件信息 @Security Bearer @Summary 添加文件信息 @Param body body model.FileInfo true "文件信息" @Success 200 {string} string "{code: 200, msg: 添加成功}" @Failure 200 {string} string "{code: -1, msg: 添加失败}" @Router /api/v1/file_infos [post]
func FileInfoDeleteHandler ¶
FileInfoDeleteHandler 删除数据 @Tags 文件信息 @Security Bearer @Summary 删除文件信息 @Param id path string true "id" @Success 200 {string} string "{code: 200, msg: 删除成功}" @Failure 200 {string} string "{code: -1, msg: 删除失败}" @Router /api/v1/file_infos/{id} [delete]
func FileInfoGetHandler ¶
FileInfoGetHandler 查询指定数据 @Tags 文件信息 @Security Bearer @Summary 通过编码获取字典数据 @Param id path int true "文件ID" @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/file_infos/{id} [get]
func FileInfoQueryHandler ¶
FileInfoQueryHandler 查询数据 @Tags 文件信息 @Security Bearer @Summary 文件信息列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param pId query string false "pId" @Success 200 {string} string "{code: 200, data: [...]}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/file_infos [get]
func FileInfoUpdateHandler ¶
FileInfoUpdateHandler 更新数据 @Tags 文件信息 @Security Bearer @Summary 更新文件信息 @Param body body model.FileInfo true "文件信息" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/file_infos [put]
func GenerateGenCodeHandler ¶
GenerateGenCodeHandler 生成代码 @Tags 工具 @Security Bearer @Summary 生成代码信息 @Param id path int true "表ID" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/gen/toproject/:id [get]
func GenerateGenConfigHandler ¶
GenerateGenConfigHandler 生成菜单和api配置 @Tags 工具 @Security Bearer @Summary 生成菜单和api配置信息 @Param id path int true "表ID" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/gen/todb/:id [get]
func GeneratePreviewHandler ¶
GeneratePreviewHandler 预览 @Tags 工具 @Security Bearer @Summary 预览代码信息 @Param id path int true "表ID" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/gen/preview/:id [get]
func GetUserInfoHandler ¶
func GetUserInfoHandler(auth auth.Auther) gin.HandlerFunc
GetUserInfoHandler 获取当前用户信息 @Tags 登录管理 @Summary 获取当前用户信息 @Security Bearer @Success 200 {object} ginx.Response{data=param.UserLoginInfo} "用户信息" @Failure 401 {object} ginx.Response "{error:{code:0,message:未授权}}" @Failure 500 {object} ginx.Response "{error:{code:0,message:服务器错误}}" @Router /api/v1/getinfo [get]
func LogOutHandler ¶
func LogOutHandler(auth auth.Auther) gin.HandlerFunc
LogOutHandler 退出系统 @Tags 登录管理 @Summary 退出登录 @Security Bearer @Success 200 {object} ginx.Response "{code:200,msg:成功退出系统}" @Failure 400 {object} ginx.Response "{code:-1,msg:退出系统失败}" @Router /api/v1/logout [post]
func LoginHandler ¶
func LoginHandler(au auth.Auther) gin.HandlerFunc
LoginHandler 登陆 @Tags 登录管理 @Summary 系统登录 @Param body body param.LoginParam true "登录参数" @Success 200 {string} string "{"code": 200, "expire": "2019-08-07T12:45:48+08:00", "token": ".eyJleHAiOjE1NjUxNTMxNDgsImlkIjoiYWRtaW4iLCJvcmlnX2lhdCI6MTU2NTE0OTU0OH0.-zvzHvbg0A" }" @Failure 400 {object} ginx.Response "{code:-1, msg:登录失败}" @Router /login [post]
func LoginLogCreateHandler ¶
LoginLogCreateHandler 创建数据 @Tags 登录日志 @Security Bearer @Summary 添加登录日志 @Param body body model.LoginLog true "登录日志信息" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/loginlogs [post]
func LoginLogDeleteHandler ¶
LoginLogDeleteHandler 删除数据 @Tags 登录日志 @Security Bearer @Summary 删除登录日志 @Param id path string true "日志ID" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/loginlogs/{id} [delete]
func LoginLogGetHandler ¶
LoginLogGetHandler 查询指定数据 @Tags 登录日志 @Security Bearer @Summary 通过ID获取登录日志 @Param id path int true "登录日志ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/loginlogs/{id} [get]
func LoginLogQueryHandler ¶
LoginLogQueryHandler 查询数据 @Tags 登录日志 @Security Bearer @Summary 登录日志列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param status query string false "status" @Param userName query string false "username" @Param ipAddr query string false "ipaddr" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/loginlogs [get]
func LoginLogUpdateHandler ¶
LoginLogUpdateHandler 更新数据 @Tags 登录日志 @Security Bearer @Summary 更新登录日志 @Param body body model.LoginLog true "登录日志" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/loginlogs [put]
func MenuCreateHandler ¶
MenuCreateHandler 创建数据 @Tags 菜单 @Security ApiKeyAuth @Summary 添加菜单数据 @Param body body param.Menu true "菜单数据" @Success 200 {object} ginx.Response "{code: 200, msg: 添加成功}" @Failure 400 {object} ginx.Response "{code: -1, msg: 添加失败}" @Router /api/v1/menus [post]
func MenuDeleteHandler ¶
MenuDeleteHandler 删除数据 @Tags 菜单 @Security ApiKeyAuth @Summary 删除菜单数据 @Param id path string true "菜单ID" @Success 200 {object} ginx.Response "{code: 200, msg: 删除成功}" @Failure 400 {object} ginx.Response "{code: -1, msg: 删除失败}" @Router /api/v1/menus/{id} [delete]
func MenuGetHandler ¶
MenuGetHandler 查询指定数据 @Tags 菜单 @Security ApiKeyAuth @Summary 通过菜单ID获取菜单数据 @Param id query string false "菜单ID" @Success 200 {object} ginx.Response{data=param.Menu} "菜单详情" @Failure 400 {object} ginx.Response "{code:-1, msg:错误信息}" @Router /api/v1/menus/{id} [get]
func MenuMenusResourcesTreeHandler ¶
MenuMenusResourcesTreeHandler 资源(权限)树 @Tags 菜单 @Security ApiKeyAuth @Summary 获取资源(权限)树 @Success 200 {object} ginx.Response{data=[]param.MenuAccessResourceTrees} "资源(权限)树" @Failure 400 {object} ginx.Response "{code:-1, msg:错误信息}" @Router /api/v1/menus_resource [get]
func MenuMenusTreeHandler ¶
MenuMenusTreeHandler 菜单树 @Tags 菜单 @Security ApiKeyAuth @Summary 获取菜单树 @Success 200 {object} ginx.Response{data=[]param.MenuTrees} "查询结果" @Failure 400 {object} ginx.Response "{code:-1, msg:错误信息}" @Router /api/v1/menus_tree [get]
func MenuQueryHandler ¶
MenuQueryHandler 查询数据 @Tags 菜单 @Security ApiKeyAuth @Summary 菜单数据列表 @Param title query string false "title" @Param visible query string false "visible" @Param menu_name query string false "菜单名称" @Success 200 {object} ginx.Response{data=[]param.MenuTrees} "查询结果" @Failure 400 {object} ginx.Response "{"code":-1,"msg":"错误信息"}" @Router /api/v1/menus [get]
func MenuUpdateHandler ¶
MenuUpdateHandler 更新数据 @Tags 菜单 @Security ApiKeyAuth @Summary 更新菜单数据 @Param body body param.Menu true "更新菜单" @Success 200 {object} ginx.Response "{code: 200, msg: 更新成功}" @Failure 400 {object} ginx.Response "{code: -1, msg: 更新失败}" @Router /api/v1/menus/{id} [put]
func MonitorServerInfoHandler ¶
MonitorServerInfoHandler 系统信息 @Tags 系统信息 @Security Bearer @Summary 查看系统信息 @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/settings/server_info [get]
func OperLogCreateHandler ¶
OperLogCreateHandler 创建数据 @Tags 操作日志 @Security Bearer @Summary 添加操作日志 @Param body body model.OperLog true "操作日志" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/operlogs [post]
func OperLogDeleteHandler ¶
OperLogDeleteHandler 删除数据 @Tags 操作日志 @Security Bearer @Summary 删除操作日志 @Param id path string true "以逗号(,)分割的id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/operlogs/{id} [delete]
func OperLogGetHandler ¶
OperLogGetHandler 查询指定数据 @Tags 操作日志 @Security Bearer @Summary 通过ID获取操作日志 @Param id path int true "日志ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/operlogs/{id} [get]
func OperLogQueryHandler ¶
OperLogQueryHandler 查询数据 @Tags 操作日志 @Security Bearer @Summary 操作日志列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param status query string false "状态" @Param operName query string false "操作人" @Param operIp query string false "操作IP" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/operlogs [get]
func PostCreateHandler ¶
PostCreateHandler 创建数据 @Tags 岗位 @Security Bearer @Summary 添加岗位 @Param body body model.Post true "岗位信息" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/posts [post]
func PostDeleteHandler ¶
PostDeleteHandler 删除数据 @Tags 岗位 @Security Bearer @Summary 删除岗位信息 @Param id path string true "职务ID" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/posts/{id} [delete]
func PostGetHandler ¶
PostGetHandler 查询指定数据 @Tags 岗位 @Security Bearer @Summary 获取岗位信息 @Param id path int true "岗位ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/posts/{id} [get]
func PostQueryHandler ¶
PostQueryHandler 查询数据 @Tags 岗位 @Security Bearer @Summary 岗位列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param postName query string false "岗位名称" @Param postCode query string false "岗位编码" @Param status query string false "status" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/posts [get]
func PostUpdateHandler ¶
PostUpdateHandler 更新数据 @Tags 岗位 @Security Bearer @Summary 更新岗位信息 @Param body body model.Post true "岗位信息" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/posts [put]
func RefreshTokenHandler ¶
func RefreshTokenHandler(au auth.Auther) gin.HandlerFunc
RefreshTokenHandler 刷新Token @Tags 登录管理 @Summary 刷新认证Token @Security Bearer @Success 200 {object} ginx.Response "{code:200,msg:刷新成功}" @Failure 400 {object} ginx.Response "{code:-1,msg:刷新失败}" @Router /api/v1/refresh_token [get]
func RoleCreateHandler ¶
func RoleCreateHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
RoleCreateHandler 创建数据 @Tags 角色 @Security Bearer @Summary 创建角色 @Param body body param.Role true "角色信息" @Success 200 string string "{code:200, msg:成功}" @Failure 400 string string "{code:-1, msg:错误信息}" @Router /api/v1/roles [post]
func RoleDeleteHandler ¶
func RoleDeleteHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
RoleDeleteHandler 删除数据 @Tags 角色 @Security Bearer @Summary 删除角色数据 @Param id path int true "角色ID" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/roles/{id} [delete]
func RoleGetHandler ¶
func RoleGetHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
RoleGetHandler 查询指定数据 @Tags 角色 @Security Bearer @Summary 通过角色ID获取角色数据 @Param id path string false "角色ID" @Success 200 {object} ginx.Response{data=param.Role} "角色详情" @Failure 400 {object} ginx.Response @Router /api/v1/roles/{id} [get]
func RoleQueryHandler ¶
func RoleQueryHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
RoleQueryHandler 查询数据 @Tags 角色 @Security Bearer @Summary 角色列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param name query string false "角色名称" @Param status query string false "status" @Success 200 {object} ginx.Response{data=[]param.Role} "角色列表" @Failure 400 {object} ginx.Response @Router /api/v1/roles [get]
func RoleUpdateDataScopeHandler ¶
func RoleUpdateDataScopeHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
RoleUpdateDataScopeHandler 更新数据权限 @Tags 角色 @Security Bearer @Summary 更新数据权限 @Param body body model.Role true "角色信息" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/roles/datascope [put]
func RoleUpdateHandler ¶
func RoleUpdateHandler(e *casbin.SyncedEnforcer) gin.HandlerFunc
RoleUpdateHandler 更新数据 @Tags 角色 @Security Bearer @Summary 更新角色信息 @Param body body param.Role true "角色信息" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/roles/{id} [put]
func SendSmsHandler ¶ added in v2.0.14
SendSmsHandler 发送验证码 @Tags 登录管理 @Summary 退出登录 @Security Bearer @Success 200 {object} ginx.Response "{code:200,msg:发送验证码成功}" @Failure 400 {object} ginx.Response "{code:-1,msg:发送验证码失败}" @Router /api/v1/sendsms [post]
func SettingCreateHandler ¶
SettingCreateHandler 创建数据 @Tags 系统信息 @Security Bearer @Summary 添加系统信息 @Param body body model.Setting true "设置信息" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/system/setting [post]
func SettingGetHandler ¶
SettingGetHandler 查询系统信息 @Tags 系统信息 @Security Bearer @Summary 查询系统信息 @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/setting [get]
func TablesCreateHandler ¶
TablesCreateHandler 创建数据 @Tags 工具 @Security Bearer @Summary 添加表结构 @Param body body model.Tables true "结构数据" @Success 200 {string} string "{code: 200, msg: 添加成功}" @Failure 200 {string} string "{code: -1, msg: 添加失败}" @Router /api/v1/sys/tables [post]
func TablesDeleteHandler ¶
TablesDeleteHandler 删除数据 @Tags 工具 @Security Bearer @Summary 删除表结构 @Param id path string true "表ID" @Success 200 {string} string "{code: 200, msg: 删除成功}" @Failure 200 {string} string "{code: -1, msg: 删除失败}" @Router /api/v1/sys/tables/{id} [delete]
func TablesGetHandler ¶
TablesGetHandler 查询指定数据 @Tags 工具 @Security Bearer @Summary 通过编码获取字典数据 @Param id path int true "表ID" @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/sys/tables/{id} [get]
func TablesGetInfoHandler ¶
TablesGetInfoHandler 获取表信息 @Tags 工具 @Security Bearer @Summary 通过表名获取表数据 @Param table_name query int true "表名称" @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/sys/table_info [get]
func TablesQueryHandler ¶
TablesQueryHandler 查询数据 @Tags 工具 @Security Bearer @Summary 生成表分页列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param tableName query string false "数据表名称" @Param tableComment query string false "数据表注释(说明)" @Success 200 {string} string "{code: 200, data: [...]}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/sys/tables [get]
func TablesTreeHandler ¶
TablesTreeHandler 表结构 @Tags 工具 @Security Bearer @Summary 查询表结构 @Success 200 {string} string "{code: 200, data: {}}" "查询结果" @Failure 200 {string} string "{code:-1, msg:错误信息}" @Router /api/v1/gen/tabletree [get]
func TablesUpdateHandler ¶
TablesUpdateHandler 更新数据 @Tags 工具 @Security Bearer @Summary 更新表结构 @Param body body model.Tables true "表结构数据" @Success 200 {string} string "{code: 200, msg: 更新成功}" @Failure 200 {string} string "{code: -1, msg: 更新失败}" @Router /api/v1/sys/tables [put]
func UploadFileHandler ¶
UploadFileHandler 上传图片 @Summary 上传图片 @Description 获取JSON @Tags 公共接口 @Accept multipart/form-data @Param type query string true "type" (1:单图,2:多图, 3:base64图片) @Param file formData file true "file" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/public/upload_file [post]
func UserCreateHandler ¶
UserCreateHandler 创建数据 @Tags 系统用户 @Security Bearer @Summary 添加用户数据 @Param body body model.User true "用户数据" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/users [post]
func UserDeleteHandler ¶
UserDeleteHandler 删除数据 @Tags 系统用户 @Security Bearer @Summary 删除用户数据 @Param id path int true "id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/users/{id} [delete]
func UserGetHandler ¶
UserGetHandler 查询指定数据 @Tags 系统用户 @Security Bearer @Summary 通过用户ID查询用户信息,待优化 @Param id path int true "用户ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/users/{id} [get]
func UserGetProfileHandler ¶
UserGetProfileHandler 个人中心数据 @Tags 系统用户 @Security Bearer @Summary 获取个人中心用户,待优化 @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/user/profile [get]
func UserQueryHandler ¶
UserQueryHandler 查询数据 @Tags 系统用户 @Security Bearer @Summary 用户信息列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param username query string false "用户名" @Param status query string false "状态" @Param phone query string false "手机号" @Param postId query int false "岗位ID" @Param deptId query int false "部门ID" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/users [get]
func UserResetPasswordHandler ¶ added in v2.0.14
UserUpdatePasswordHandler 重置密码 @Tags 系统用户 @Security Bearer @Summary 重置用户密码 @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/users/{id}/reset [put]
func UserUpdateAvatarHandler ¶
UserUpdateAvatarHandler 修改头像 @Tags 系统用户 @Security Bearer @Summary 修改用户头像数据 @Param file formData file true "file" @Success 200 string string "{code: 200, msg: 修改成功}" @Failure 200 string string "{code: -1, msg: 修改失败}" @Router /api/v1/user/avatar [post]
func UserUpdateHandler ¶
UserUpdateHandler 更新数据 @Tags 系统用户 @Security Bearer @Summary 更新用户数据 @Param body body model.User true "用户数据" @Success 200 string string "{code: 200, msg: 更新成功}" @Failure 200 string string "{code: -1, msg: 更新失败}" @Router /api/v1/users/{id} [put]
Types ¶
type FileResponse ¶
type FileResponse struct { Size int64 `json:"size"` Path string `json:"path"` FullPath string `json:"full_path"` Name string `json:"name"` Type string `json:"type"` }
FileResponse 文件返回内容
type Generate ¶
type Generate struct { GenerateService *service.Generate TableService *service.Tables ColumnService *service.Column }
Generate 生成
type Login ¶
type Login struct { Auth auth.Auther UserService *service.User //RoleMenuService *service.RoleMenu LoginLogService *service.LoginLog }
Login 登录管理