Documentation ¶
Index ¶
- func HandleData(data interface{}, err error) mvc.Result
- type AdminFileController
- func (f *AdminFileController) DeleteFileBy(ctx echo.Context, fileid string) mvc.Result
- func (f *AdminFileController) PostConfirmFileBy(ctx echo.Context, fileid string) mvc.Result
- func (f *AdminFileController) PostDriverSignDelete(ctx echo.Context) mvc.Result
- func (f *AdminFileController) PostDriverSignUpload(ctx echo.Context) mvc.Result
- func (f *AdminFileController) PostFile(ctx echo.Context, parentid string) mvc.Result
- func (f *AdminFileController) PostFileBy(ctx echo.Context, parentid string) mvc.Result
- func (f *AdminFileController) PostSync(ctx echo.Context) mvc.Result
- func (f *AdminFileController) PutDir(ctx echo.Context) mvc.Result
- func (f *AdminFileController) PutDirBy(ctx echo.Context, parentid string) mvc.Result
- type DataResponse
- type EmptyResponse
- type FileController
- func (f *FileController) GetBaseinfoBy(ctx echo.Context, fileid string) mvc.Result
- func (f *FileController) GetBy(ctx echo.Context, fileid string) mvc.Result
- func (f *FileController) GetDir(ctx echo.Context) mvc.Result
- func (f *FileController) GetDirBy(ctx echo.Context, fileid string) mvc.Result
- func (f *FileController) PostCount(ctx echo.Context) mvc.Result
- func (f *FileController) PostSearch(ctx echo.Context) mvc.Result
- type InitController
- func (c *InitController) GetDriverprops(ctx echo.Context) mvc.Result
- func (c *InitController) PostCheckDb(ctx echo.Context, dbconfig configs.Mysql) mvc.Result
- func (c *InitController) PostCheckDriver(ctx echo.Context, driverConfig configs.DriverConfig) mvc.Result
- func (c *InitController) PostConfig(ctx echo.Context, config configs.Config) mvc.Result
- func (c *InitController) PostRestart(ctx echo.Context) mvc.Result
- type PageRespMessage
- type RespMessage
- type SiteController
- type TextResponse
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleData ¶
Types ¶
type AdminFileController ¶
type AdminFileController struct {
// contains filtered or unexported fields
}
func NewAdminFileController ¶
func NewAdminFileController(fileSrv services.FileService, driver driver.Driver) *AdminFileController
func (*AdminFileController) DeleteFileBy ¶
func (f *AdminFileController) DeleteFileBy(ctx echo.Context, fileid string) mvc.Result
func (*AdminFileController) PostConfirmFileBy ¶
func (f *AdminFileController) PostConfirmFileBy(ctx echo.Context, fileid string) mvc.Result
确认执行成功
func (*AdminFileController) PostDriverSignDelete ¶
func (f *AdminFileController) PostDriverSignDelete(ctx echo.Context) mvc.Result
func (*AdminFileController) PostDriverSignUpload ¶
func (f *AdminFileController) PostDriverSignUpload(ctx echo.Context) mvc.Result
func (*AdminFileController) PostFile ¶
func (f *AdminFileController) PostFile(ctx echo.Context, parentid string) mvc.Result
func (*AdminFileController) PostFileBy ¶
func (f *AdminFileController) PostFileBy(ctx echo.Context, parentid string) mvc.Result
func (*AdminFileController) PostSync ¶
func (f *AdminFileController) PostSync(ctx echo.Context) mvc.Result
func (*AdminFileController) PutDir ¶
func (f *AdminFileController) PutDir(ctx echo.Context) mvc.Result
type DataResponse ¶
type DataResponse struct { Code int `json:"code"` Data interface{} `json:"data"` }
type EmptyResponse ¶
type EmptyResponse struct {
Code int `json:"code"`
}
type FileController ¶
type FileController struct {
// contains filtered or unexported fields
}
func NewFileController ¶
func NewFileController(fileSrv services.FileService) *FileController
func (*FileController) GetBaseinfoBy ¶ added in v1.0.0
func (f *FileController) GetBaseinfoBy(ctx echo.Context, fileid string) mvc.Result
func (*FileController) GetBy ¶ added in v1.0.0
func (f *FileController) GetBy(ctx echo.Context, fileid string) mvc.Result
func (*FileController) GetDir ¶
func (f *FileController) GetDir(ctx echo.Context) mvc.Result
func (*FileController) GetDirBy ¶
func (f *FileController) GetDirBy(ctx echo.Context, fileid string) mvc.Result
func (*FileController) PostCount ¶ added in v1.0.0
func (f *FileController) PostCount(ctx echo.Context) mvc.Result
func (*FileController) PostSearch ¶ added in v1.0.0
func (f *FileController) PostSearch(ctx echo.Context) mvc.Result
type InitController ¶ added in v1.0.0
type InitController struct { }
func NewInitController ¶ added in v1.0.0
func NewInitController() *InitController
func (*InitController) GetDriverprops ¶ added in v1.0.0
func (c *InitController) GetDriverprops(ctx echo.Context) mvc.Result
func (*InitController) PostCheckDb ¶ added in v1.0.0
func (c *InitController) PostCheckDb(ctx echo.Context, dbconfig configs.Mysql) mvc.Result
func (*InitController) PostCheckDriver ¶ added in v1.0.0
func (c *InitController) PostCheckDriver(ctx echo.Context, driverConfig configs.DriverConfig) mvc.Result
func (*InitController) PostConfig ¶ added in v1.0.0
func (c *InitController) PostConfig(ctx echo.Context, config configs.Config) mvc.Result
func (*InitController) PostRestart ¶ added in v1.0.0
func (c *InitController) PostRestart(ctx echo.Context) mvc.Result
type PageRespMessage ¶
type RespMessage ¶
type SiteController ¶
type SiteController struct {
// contains filtered or unexported fields
}
func NewSiteController ¶
func NewSiteController(userSrv services.UserService) *SiteController
func (*SiteController) GetConfig ¶
func (u *SiteController) GetConfig(ctx echo.Context) mvc.Result
type TextResponse ¶
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func NewUserController ¶
func NewUserController(userSrv services.UserService) *UserController
func (*UserController) GetInfo ¶
func (u *UserController) GetInfo(ctx echo.Context) mvc.Result
func (*UserController) PostLogin ¶
func (u *UserController) PostLogin(ctx echo.Context) mvc.Result
func (*UserController) PostRegister ¶
func (u *UserController) PostRegister(ctx echo.Context, user models.User) mvc.Result
Click to show internal directories.
Click to hide internal directories.