Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CasbinEnforcer ¶
CasbinEnforcer 获取adapter单例对象
Types ¶
type ICaptcha ¶
type IConfig ¶
type IConfig interface { List(ctx context.Context, req *system.ConfigSearchReq) (res *system.ConfigSearchRes, err error) Add(ctx context.Context, req *system.ConfigAddReq, userId uint64) (err error) Get(ctx context.Context, id int) (res *system.ConfigGetRes, err error) Edit(ctx context.Context, req *system.ConfigEditReq, userId uint64) (err error) Delete(ctx context.Context, ids []int) (err error) GetConfigByKey(ctx context.Context, key string) (config *entity.SysConfig, err error) GetByKey(ctx context.Context, key string) (config *entity.SysConfig, err error) }
type IDictData ¶
type IDictData interface { GetDictWithDataByType(ctx context.Context, req *system.GetDictReq) (dict *system.GetDictRes, err error) List(ctx context.Context, req *system.DictDataSearchReq) (res *system.DictDataSearchRes, err error) Add(ctx context.Context, req *system.DictDataAddReq, userId uint64) (err error) Get(ctx context.Context, dictCode uint) (res *system.DictDataGetRes, err error) Edit(ctx context.Context, req *system.DictDataEditReq, userId uint64) (err error) Delete(ctx context.Context, ids []int) (err error) ListAllSimple(ctx context.Context, req *system.DictDataSimpleReq) (res *system.DictDataSimpleRes, err error) }
type IDictType ¶
type IDictType interface { List(ctx context.Context, req *system.DictTypeSearchReq) (res *system.DictTypeSearchRes, err error) Add(ctx context.Context, req *system.DictTypeAddReq, userId uint64) (err error) Get(ctx context.Context, req *system.DictTypeGetReq) (dictType *entity.SysDictType, err error) Edit(ctx context.Context, req *system.DictTypeEditReq, userId uint64) (err error) Delete(ctx context.Context, dictIds []int) (err error) }
type IGfToken ¶
type IGfToken interface { GenerateToken(ctx context.Context, key string, data interface{}) (keys string, err error) Middleware(group *ghttp.RouterGroup) error ParseToken(r *ghttp.Request) (*gftoken.CustomClaims, error) IsLogin(r *ghttp.Request) (b bool, failed *gftoken.AuthFailed) GetRequestToken(r *ghttp.Request) (token string) RemoveToken(ctx context.Context, token string) (err error) }
func GfToken ¶
func GfToken(options *model.TokenOptions) IGfToken
type IMiddleware ¶
func Middleware ¶
func Middleware() IMiddleware
type IUpload ¶
type IUpload interface { UploadFile(ctx context.Context, file *ghttp.UploadFile, checkFileType string, source int) (result common.UploadResponse, err error) UploadFiles(ctx context.Context, files []*ghttp.UploadFile, checkFileType string, source int) (result common.UploadMultipleRes, err error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.