Documentation ¶
Index ¶
- func NewCasbinController(apiV1 *version.APIV1, store *session.RedisStore, perm *casbin.Enforcer, ...)
- func NewDirectoryController(apiV1 *version.APIV1, log *zap.Logger, logic domain.DirectoryLogicFace, ...)
- func NewFileController(apiV1 *version.APIV1, log *zap.Logger, store *session.RedisStore, ...)
- func NewJobController(apiV1 *version.APIV1, db *sqlx.DB, jobServer *machinery.Server)
- func NewRoleController(apiV1 *version.APIV1, log *zap.Logger, logic domain.RoleLogicFace, ...)
- func NewSysController(apiV1 *version.APIV1, db *sqlx.DB)
- func NewUserController(apiV1 *version.APIV1, log *zap.Logger, logic domain.UserLogicFace, ...)
- type CasbinController
- type DirectoryController
- func (d DirectoryController) CreateDirectory(ctx *gin.Context)
- func (d DirectoryController) DeleteDirectory(ctx *gin.Context)
- func (d DirectoryController) ListDirectory(ctx *gin.Context)
- func (d DirectoryController) MoveDirectory(ctx *gin.Context)
- func (d DirectoryController) RenameDirectory(ctx *gin.Context)
- type FileController
- func (f FileController) DeleteLocal(ctx *gin.Context)
- func (f FileController) DownloadLocal(ctx *gin.Context)
- func (f FileController) DownloadLocalFileStream(ctx *gin.Context)
- func (f FileController) RetrieveFile(ctx *gin.Context)
- func (f FileController) UploadLocal(ctx *gin.Context)
- func (f FileController) UploadOss(ctx *gin.Context)
- type JobController
- type RoleController
- type SysController
- type UserController
- func (u UserController) GetAllUser(ctx *gin.Context)
- func (u UserController) GetUserProfile(ctx *gin.Context)
- func (u UserController) Login(ctx *gin.Context)
- func (u UserController) Logout(ctx *gin.Context)
- func (u UserController) ModifyPassword(ctx *gin.Context)
- func (u UserController) Register(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCasbinController ¶
func NewDirectoryController ¶
func NewDirectoryController(apiV1 *version.APIV1, log *zap.Logger, logic domain.DirectoryLogicFace, store *session.RedisStore, perm *casbin.Enforcer)
func NewFileController ¶
func NewFileController(apiV1 *version.APIV1, log *zap.Logger, store *session.RedisStore, logic domain.FileLogicFace, perm *casbin.Enforcer)
func NewJobController ¶
func NewRoleController ¶
func NewRoleController(apiV1 *version.APIV1, log *zap.Logger, logic domain.RoleLogicFace, store *session.RedisStore, perm *casbin.Enforcer, xtracer *xtracer.XTracer)
func NewUserController ¶
func NewUserController(apiV1 *version.APIV1, log *zap.Logger, logic domain.UserLogicFace, store *session.RedisStore, xtracer *xtracer.XTracer)
Types ¶
type CasbinController ¶
type CasbinController struct {
// contains filtered or unexported fields
}
func (CasbinController) CreatePermission ¶
func (c CasbinController) CreatePermission(ctx *gin.Context)
CreatePermissions @Summary Create Permissions @Description Create Permissions @Tags Permission @Accept json @Produce json @Param @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /create [POST]
func (CasbinController) CreatePermissions ¶
func (c CasbinController) CreatePermissions(ctx *gin.Context)
CreatePermissions @Summary Create Permissions @Description Create Permissions @Tags Permission @Accept json @Produce json @Param @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /creates [POST]
type DirectoryController ¶
type DirectoryController struct {
// contains filtered or unexported fields
}
func (DirectoryController) CreateDirectory ¶
func (d DirectoryController) CreateDirectory(ctx *gin.Context)
CreateDirectory @Summary Create Directory @Description Create Directory @Tags Directory @Accept json @Produce json @Router /create [POST]
func (DirectoryController) DeleteDirectory ¶
func (d DirectoryController) DeleteDirectory(ctx *gin.Context)
DeleteDirectory @Summary Delete Directory @Description Delete Directory @Tags Directory @Accept json @Produce json @Router /delete [DELETE]
func (DirectoryController) ListDirectory ¶
func (d DirectoryController) ListDirectory(ctx *gin.Context)
ListDirectory @Summary List Directory @Description List Directory @Tags Directory @Accept json @Produce json @Router /list [POST]
func (DirectoryController) MoveDirectory ¶
func (d DirectoryController) MoveDirectory(ctx *gin.Context)
MoveDirectory @Summary Move Directory @Description Move Directory @Tags Directory @Accept json @Produce json @Router /move [POST]
func (DirectoryController) RenameDirectory ¶
func (d DirectoryController) RenameDirectory(ctx *gin.Context)
RenameDirectory @Summary Rename Directory @Description Rename Directory @Tags Directory @Accept json @Produce json @Router /rename [PUT]
type FileController ¶
type FileController struct {
// contains filtered or unexported fields
}
func (FileController) DeleteLocal ¶
func (f FileController) DeleteLocal(ctx *gin.Context)
DeleteLocal @Summary DeleteLocal File @Description DeleteLocal File @Tags File @Accept json @Produce json @Param file_id query @Router /delete [DELETE]
func (FileController) DownloadLocal ¶
func (f FileController) DownloadLocal(ctx *gin.Context)
DownloadLocal @Summary Download Local File @Description Download Local File @Tags File @Accept json @Param q query string true "download file" @Produce json @Success 0 {object} application/octet-stream @Failure 1 {object} @Router /download [GET]
func (FileController) DownloadLocalFileStream ¶
func (f FileController) DownloadLocalFileStream(ctx *gin.Context)
DownloadLocalFileStream @Summary DownloadLocalFileStream @Description DownloadLocalFileStream @Tags File @Accept json @Param q query string true "download file" @Produce json @Success 0 {object} application/octet-stream @Failure 1 {object} @Router /stream [GET]
func (FileController) RetrieveFile ¶
func (f FileController) RetrieveFile(ctx *gin.Context)
RetrieveFile @Summary Retrieve File @Description Retrieve File @Tags File @Accept json @Produce json @Router /retrieve [GET]
func (FileController) UploadLocal ¶
func (f FileController) UploadLocal(ctx *gin.Context)
UploadLocal @Summary UploadLocal @Description List File @Tags File @Accept multipart/form-data @Param file formData file true "文件上传" @Produce json @Router /upload [POST]
func (FileController) UploadOss ¶
func (f FileController) UploadOss(ctx *gin.Context)
UploadOss @Summary UploadOss @Description Upload Oss @Tags File @Accept multipart/form-data @Param file formData file true "文件上传Oss" @Produce json @Router /oss [POST]
type JobController ¶
type JobController struct {
// contains filtered or unexported fields
}
func (JobController) GetJobs ¶
func (u JobController) GetJobs(ctx *gin.Context)
GetJobs @Summary Get Jobs @Description Get Jobs @Tags Job @Accept json @Produce json @Router /jobs [GET]
func (JobController) User2EsJobs ¶
func (u JobController) User2EsJobs(ctx *gin.Context)
GetJobs @Summary Get Jobs @Description Get Jobs @Tags Job @Accept json @Produce json @Router /jobs [GET]
type RoleController ¶
type RoleController struct {
// contains filtered or unexported fields
}
func (RoleController) CreateRole ¶
func (r RoleController) CreateRole(ctx *gin.Context)
CreateRole @Summary Create Role @Description Create Role @Tags Role @Accept json @Produce json @Param CreateRole body types.CreateRoleParam true "CreateRole" @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /create [POST]
func (RoleController) DeleteRole ¶
func (r RoleController) DeleteRole(ctx *gin.Context)
DeleteRole @Summary Delete Role @Description Delete Role @Tags Role @Accept json @Produce json @Param DeleteRole body types.DeleteRoleParam true "DeleteRole" @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /delete [DELETE]
func (RoleController) ListRole ¶
func (r RoleController) ListRole(ctx *gin.Context)
ListRole @Summary List Role @Description List Role @Tags Role @Accept json @Produce json @Param ListRole body types.ListRoleParam true "ListRole" @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /list [GET]
func (RoleController) MoveRole ¶
func (r RoleController) MoveRole(ctx *gin.Context)
MoveRole @Summary Move Role @Description Move Role @Tags Role @Accept json @Produce json @Param ListRole body types.ListRoleParam true "ListRole" @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /move [POST]
func (RoleController) UpdateRole ¶
func (r RoleController) UpdateRole(ctx *gin.Context)
UpdateRole @Summary Update Role Name @Description Update Role Name @Tags Role @Accept json @Produce json @Param UpdateRole body types.RenameRoleParam true "UpdateRole" @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /update [PUT]
type SysController ¶
type SysController struct {
// contains filtered or unexported fields
}
func (SysController) DBCheck ¶
func (sys SysController) DBCheck(ctx *gin.Context)
DBCheck @Summary DB Check @Description DbCheck @Tags Sys @Accept json @Produce json @Router /db [GET]
func (SysController) SysCheck ¶
func (u SysController) SysCheck(ctx *gin.Context)
SysCheck @Summary Sys Check @Description Sys Check @Tags Sys @Accept json @Produce json @Router /sys [GET]
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func (UserController) GetAllUser ¶
func (u UserController) GetAllUser(ctx *gin.Context)
GetAllUser @Summary Get All User @Description Get All User @Tags User @Accept json @Produce json @Router /users [GET]
func (UserController) GetUserProfile ¶
func (u UserController) GetUserProfile(ctx *gin.Context)
GetUserProfile @Summary Get UserProfile @Description Get UserProfile @Tags User @Accept json @Produce json @Router /profile [GET]
func (UserController) Login ¶
func (u UserController) Login(ctx *gin.Context)
Login @Summary User Login @Description User Login @Tags User @Accept json @Produce json @Param login body types.LoginParam true "login" @Success 0 {object} domain.UserVO {"code":0,"data": domain.UserVO, "msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":1,"data":null,"msg":"Error"} @Router /login [POST]
func (UserController) Logout ¶
func (u UserController) Logout(ctx *gin.Context)
GetUserProfile @Summary Get UserProfile @Description Get UserProfile @Tags User @Accept json @Produce json @Router /profile [GET]
func (UserController) ModifyPassword ¶
func (u UserController) ModifyPassword(ctx *gin.Context)
ModifyPassword @Summary Modify Password @Description Modify Password @Tags User @Accept json @Produce json @Router /modify_password [GET]
func (UserController) Register ¶
func (u UserController) Register(ctx *gin.Context)
Register @Summary User Register @Description User Register @Tags User @Accept json @Produce json @Param register body types.RegisterParam true "register" @Success 0 {object} types.CommonResponse {"code":1,"data":null,"msg":"Success"} @Failure 1 {object} types.CommonResponse {"code":0,"data":null,"msg":"Error"} @Router /register [POST]