// ================================================================================ // Code generated by GoFrame CLI tool. DO NOT EDIT. // You can delete these comments if you wish manually maintain this interface file. // ================================================================================ package service import ( "context" "hotgo/internal/library/queue" "hotgo/internal/model" "hotgo/internal/model/entity" "hotgo/internal/model/input/sysin" "github.com/gogf/gf/v2/frame/g" ) type ( ISysDictType interface { Tree(ctx context.Context) (list []g.Map, err error) Delete(ctx context.Context, in sysin.DictTypeDeleteInp) error Edit(ctx context.Context, in sysin.DictTypeEditInp) (err error) Select(ctx context.Context, in sysin.DictTypeSelectInp) (list sysin.DictTypeSelectModel, err error) } ISysLog interface { Export(ctx context.Context, in sysin.LogListInp) (err error) RealWrite(ctx context.Context, commonLog entity.SysLog) error AutoLog(ctx context.Context) (err error) QueueJob(ctx context.Context, mqMsg queue.MqMsg) (err error) AnalysisLog(ctx context.Context) entity.SysLog View(ctx context.Context, in sysin.LogViewInp) (res *sysin.LogViewModel, err error) Delete(ctx context.Context, in sysin.LogDeleteInp) error List(ctx context.Context, in sysin.LogListInp) (list []*sysin.LogListModel, totalCount int64, err error) } ISysBlacklist interface { Delete(ctx context.Context, in sysin.BlacklistDeleteInp) error Edit(ctx context.Context, in sysin.BlacklistEditInp) (err error) Status(ctx context.Context, in sysin.BlacklistStatusInp) (err error) MaxSort(ctx context.Context, in sysin.BlacklistMaxSortInp) (*sysin.BlacklistMaxSortModel, error) View(ctx context.Context, in sysin.BlacklistViewInp) (res *sysin.BlacklistViewModel, err error) List(ctx context.Context, in sysin.BlacklistListInp) (list []*sysin.BlacklistListModel, totalCount int64, err error) } ISysConfig interface { GetSmtp(ctx context.Context) (conf *model.EmailConfig, err error) GetConfigByGroup(ctx context.Context, in sysin.GetConfigInp) (*sysin.GetConfigModel, error) ConversionType(ctx context.Context, models *entity.SysConfig) (value interface{}, err error) UpdateConfigByGroup(ctx context.Context, in sysin.UpdateConfigInp) error } ISysCron interface { StartCron(ctx context.Context) Delete(ctx context.Context, in sysin.CronDeleteInp) error Edit(ctx context.Context, in sysin.CronEditInp) (err error) Status(ctx context.Context, in sysin.CronStatusInp) (err error) MaxSort(ctx context.Context, in sysin.CronMaxSortInp) (*sysin.CronMaxSortModel, error) View(ctx context.Context, in sysin.CronViewInp) (res *sysin.CronViewModel, err error) List(ctx context.Context, in sysin.CronListInp) (list []*sysin.CronListModel, totalCount int64, err error) } ISysCronGroup interface { Delete(ctx context.Context, in sysin.CronGroupDeleteInp) error Edit(ctx context.Context, in sysin.CronGroupEditInp) (err error) Status(ctx context.Context, in sysin.CronGroupStatusInp) (err error) MaxSort(ctx context.Context, in sysin.CronGroupMaxSortInp) (*sysin.CronGroupMaxSortModel, error) View(ctx context.Context, in sysin.CronGroupViewInp) (res *sysin.CronGroupViewModel, err error) List(ctx context.Context, in sysin.CronGroupListInp) (list []*sysin.CronGroupListModel, totalCount int64, err error) Select(ctx context.Context, in sysin.CronGroupSelectInp) (list sysin.CronGroupSelectModel, err error) } ISysDictData interface { Delete(ctx context.Context, in sysin.DictDataDeleteInp) error Edit(ctx context.Context, in sysin.DictDataEditInp) (err error) List(ctx context.Context, in sysin.DictDataListInp) (list []*sysin.DictDataListModel, totalCount int64, err error) } ISysAttachment interface { Delete(ctx context.Context, in sysin.AttachmentDeleteInp) error Edit(ctx context.Context, in sysin.AttachmentEditInp) (err error) Status(ctx context.Context, in sysin.AttachmentStatusInp) (err error) MaxSort(ctx context.Context, in sysin.AttachmentMaxSortInp) (*sysin.AttachmentMaxSortModel, error) View(ctx context.Context, in sysin.AttachmentViewInp) (res *sysin.AttachmentViewModel, err error) List(ctx context.Context, in sysin.AttachmentListInp) (list []*sysin.AttachmentListModel, totalCount int64, err error) Add(ctx context.Context, meta *sysin.UploadFileMeta, fullPath, drive string) (data *entity.SysAttachment, err error) } ISysProvinces interface { Delete(ctx context.Context, in sysin.ProvincesDeleteInp) error Edit(ctx context.Context, in sysin.ProvincesEditInp) (err error) Status(ctx context.Context, in sysin.ProvincesStatusInp) (err error) MaxSort(ctx context.Context, in sysin.ProvincesMaxSortInp) (*sysin.ProvincesMaxSortModel, error) View(ctx context.Context, in sysin.ProvincesViewInp) (res *sysin.ProvincesViewModel, err error) List(ctx context.Context, in sysin.ProvincesListInp) (list []*sysin.ProvincesListModel, totalCount int64, err error) } ) var ( localSysConfig ISysConfig localSysCron ISysCron localSysCronGroup ISysCronGroup localSysDictData ISysDictData localSysDictType ISysDictType localSysLog ISysLog localSysBlacklist ISysBlacklist localSysProvinces ISysProvinces localSysAttachment ISysAttachment ) func SysAttachment() ISysAttachment { if localSysAttachment == nil { panic("implement not found for interface ISysAttachment, forgot register?") } return localSysAttachment } func RegisterSysAttachment(i ISysAttachment) { localSysAttachment = i } func SysProvinces() ISysProvinces { if localSysProvinces == nil { panic("implement not found for interface ISysProvinces, forgot register?") } return localSysProvinces } func RegisterSysProvinces(i ISysProvinces) { localSysProvinces = i } func SysBlacklist() ISysBlacklist { if localSysBlacklist == nil { panic("implement not found for interface ISysBlacklist, forgot register?") } return localSysBlacklist } func RegisterSysBlacklist(i ISysBlacklist) { localSysBlacklist = i } func SysConfig() ISysConfig { if localSysConfig == nil { panic("implement not found for interface ISysConfig, forgot register?") } return localSysConfig } func RegisterSysConfig(i ISysConfig) { localSysConfig = i } func SysCron() ISysCron { if localSysCron == nil { panic("implement not found for interface ISysCron, forgot register?") } return localSysCron } func RegisterSysCron(i ISysCron) { localSysCron = i } func SysCronGroup() ISysCronGroup { if localSysCronGroup == nil { panic("implement not found for interface ISysCronGroup, forgot register?") } return localSysCronGroup } func RegisterSysCronGroup(i ISysCronGroup) { localSysCronGroup = i } func SysDictData() ISysDictData { if localSysDictData == nil { panic("implement not found for interface ISysDictData, forgot register?") } return localSysDictData } func RegisterSysDictData(i ISysDictData) { localSysDictData = i } func SysDictType() ISysDictType { if localSysDictType == nil { panic("implement not found for interface ISysDictType, forgot register?") } return localSysDictType } func RegisterSysDictType(i ISysDictType) { localSysDictType = i } func SysLog() ISysLog { if localSysLog == nil { panic("implement not found for interface ISysLog, forgot register?") } return localSysLog } func RegisterSysLog(i ISysLog) { localSysLog = i }