Documentation ¶
Overview ¶
Package system @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package system @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package system @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package system @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package system @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package system @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSysDic ¶
func RegisterSysDic(i ISysDic)
func RegisterSysFile ¶
func RegisterSysFile(i ISysFile)
func RegisterSysMenu ¶
func RegisterSysMenu(i ISysMenu)
func RegisterSysParam ¶
func RegisterSysParam(i ISysParam)
func RegisterSysRole ¶
func RegisterSysRole(i ISysRole)
func RegisterUserinfo ¶
func RegisterUserinfo(i ISysUser)
Types ¶
type ISysDic ¶
type ISysDic interface { GetByKey(ctx context.Context, key string) (entity *entity.SysDic, err error) GetByKeys(ctx context.Context, keys []string) (entities []*entity.SysDic, err error) AllList(ctx context.Context) (entities []*entity.SysDic, err error) GetById(ctx context.Context, id int64) (entity *entity.SysDic, err error) SaveOrUpdate(ctx context.Context, entity *entity.SysDic) (err error) SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysDic) (err error) Count(ctx context.Context) (count int, err error) Delete(ctx context.Context, ids []int64) (err error) DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysDic) (err error) }
type ISysFile ¶
type ISysFile interface { GetByUri(ctx context.Context, uri string) (en *entity.SysFile, err error) //根据uri字段查询明细 GetByUriAndProxyType(ctx context.Context, uri, cache string) (en *entity.SysFile, err error) //根据uri/proxyType字段查询明细 SaveSizeByIsDeploy(ctx context.Context, uri, name, ossType, proxyType string, size int) (err error) //指定数据是否为自部署(默认为0否) SaveOrUpdateDownSize(ctx context.Context, uri, name, ossType, proxyType string, size int) (err error) //保存数据或者更新size(默认为0否) AllList(ctx context.Context) (entities []*entity.SysFile, err error) GetById(ctx context.Context, id int64) (entity *entity.SysFile, err error) SaveOrUpdate(ctx context.Context, entity *entity.SysFile) (err error) SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysFile) (err error) Count(ctx context.Context) (count int, err error) Delete(ctx context.Context, ids []int64) (err error) DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysFile) (err error) }
type ISysMenu ¶
type ISysMenu interface { AllList(ctx context.Context) (entities []*entity.SysMenu, err error) GetById(ctx context.Context, id int64) (entity *entity.SysMenu, err error) SaveOrUpdate(ctx context.Context, entity *entity.SysMenu) (err error) SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysMenu) (err error) Count(ctx context.Context) (count int, err error) Delete(ctx context.Context, ids []int64) (err error) DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysMenu) (err error) }
type ISysParam ¶
type ISysParam interface { GetParamMap(ctx context.Context) (maps map[string]entity.SysParam, err error) QueryToYaml(ctx context.Context, key string) (j *gjson.Json, err error) GetByLikeRKey(ctx context.Context, key string) (entities []*entity.SysParam, err error) GetByKey(ctx context.Context, key string) (entity *entity.SysParam, err error) GetByKeys(ctx context.Context, keys []string) (entities []*entity.SysParam, err error) AllList(ctx context.Context) (entities []*entity.SysParam, err error) GetById(ctx context.Context, id int64) (entity *entity.SysParam, err error) SaveOrUpdate(ctx context.Context, entity *entity.SysParam) (err error) SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysParam) (err error) Count(ctx context.Context) (count int, err error) Delete(ctx context.Context, ids []int64) (err error) DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysParam) (err error) }
type ISysRole ¶
type ISysRole interface { AllList(ctx context.Context) (entities []*entity.SysRole, err error) GetById(ctx context.Context, id int64) (entity *entity.SysRole, err error) SaveOrUpdate(ctx context.Context, entity *entity.SysRole) (err error) SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysRole) (err error) Count(ctx context.Context) (count int, err error) Delete(ctx context.Context, ids []int64) (err error) DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysRole) (err error) }
type ISysUser ¶
type ISysUser interface { IsAdmin(ctx context.Context, id int) bool Login(ctx context.Context, input vo.UserInfoLoginInput) (en *entity.SysUser, err error) AllList(ctx context.Context) (entities []*entity.SysUser, err error) GetById(ctx context.Context, id int64) (entity *entity.SysUser, err error) SaveOrUpdate(ctx context.Context, entity *entity.SysUser) (err error) SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysUser) (err error) Count(ctx context.Context) (count int, err error) Delete(ctx context.Context, ids []int) (err error) DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysUser) (err error) }