mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-27 21:21:42 +08:00
更新业务接口
This commit is contained in:
@@ -114,38 +114,16 @@ type (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
localAdminMonitor IAdminMonitor
|
||||||
|
localAdminNotice IAdminNotice
|
||||||
|
localAdminPost IAdminPost
|
||||||
localAdminRole IAdminRole
|
localAdminRole IAdminRole
|
||||||
localAdminDept IAdminDept
|
localAdminDept IAdminDept
|
||||||
localAdminMember IAdminMember
|
localAdminMember IAdminMember
|
||||||
localAdminMemberPost IAdminMemberPost
|
localAdminMemberPost IAdminMemberPost
|
||||||
localAdminMenu IAdminMenu
|
localAdminMenu IAdminMenu
|
||||||
localAdminMonitor IAdminMonitor
|
|
||||||
localAdminNotice IAdminNotice
|
|
||||||
localAdminPost IAdminPost
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func AdminMenu() IAdminMenu {
|
|
||||||
if localAdminMenu == nil {
|
|
||||||
panic("implement not found for interface IAdminMenu, forgot register?")
|
|
||||||
}
|
|
||||||
return localAdminMenu
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterAdminMenu(i IAdminMenu) {
|
|
||||||
localAdminMenu = i
|
|
||||||
}
|
|
||||||
|
|
||||||
func AdminMonitor() IAdminMonitor {
|
|
||||||
if localAdminMonitor == nil {
|
|
||||||
panic("implement not found for interface IAdminMonitor, forgot register?")
|
|
||||||
}
|
|
||||||
return localAdminMonitor
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterAdminMonitor(i IAdminMonitor) {
|
|
||||||
localAdminMonitor = i
|
|
||||||
}
|
|
||||||
|
|
||||||
func AdminNotice() IAdminNotice {
|
func AdminNotice() IAdminNotice {
|
||||||
if localAdminNotice == nil {
|
if localAdminNotice == nil {
|
||||||
panic("implement not found for interface IAdminNotice, forgot register?")
|
panic("implement not found for interface IAdminNotice, forgot register?")
|
||||||
@@ -211,3 +189,25 @@ func AdminMemberPost() IAdminMemberPost {
|
|||||||
func RegisterAdminMemberPost(i IAdminMemberPost) {
|
func RegisterAdminMemberPost(i IAdminMemberPost) {
|
||||||
localAdminMemberPost = i
|
localAdminMemberPost = i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func AdminMenu() IAdminMenu {
|
||||||
|
if localAdminMenu == nil {
|
||||||
|
panic("implement not found for interface IAdminMenu, forgot register?")
|
||||||
|
}
|
||||||
|
return localAdminMenu
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterAdminMenu(i IAdminMenu) {
|
||||||
|
localAdminMenu = i
|
||||||
|
}
|
||||||
|
|
||||||
|
func AdminMonitor() IAdminMonitor {
|
||||||
|
if localAdminMonitor == nil {
|
||||||
|
panic("implement not found for interface IAdminMonitor, forgot register?")
|
||||||
|
}
|
||||||
|
return localAdminMonitor
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterAdminMonitor(i IAdminMonitor) {
|
||||||
|
localAdminMonitor = i
|
||||||
|
}
|
||||||
|
@@ -17,26 +17,37 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
ISysCron interface {
|
ISysSmsLog interface {
|
||||||
StartCron(ctx context.Context)
|
Delete(ctx context.Context, in sysin.SmsLogDeleteInp) error
|
||||||
Delete(ctx context.Context, in sysin.CronDeleteInp) (err error)
|
Edit(ctx context.Context, in sysin.SmsLogEditInp) (err error)
|
||||||
Edit(ctx context.Context, in sysin.CronEditInp) (err error)
|
Status(ctx context.Context, in sysin.SmsLogStatusInp) (err error)
|
||||||
Status(ctx context.Context, in sysin.CronStatusInp) (err error)
|
MaxSort(ctx context.Context, in sysin.SmsLogMaxSortInp) (*sysin.SmsLogMaxSortModel, error)
|
||||||
MaxSort(ctx context.Context, in sysin.CronMaxSortInp) (res *sysin.CronMaxSortModel, err error)
|
View(ctx context.Context, in sysin.SmsLogViewInp) (res *sysin.SmsLogViewModel, err error)
|
||||||
View(ctx context.Context, in sysin.CronViewInp) (res *sysin.CronViewModel, err error)
|
List(ctx context.Context, in sysin.SmsLogListInp) (list []*sysin.SmsLogListModel, totalCount int, err error)
|
||||||
List(ctx context.Context, in sysin.CronListInp) (list []*sysin.CronListModel, totalCount int, err error)
|
SendCode(ctx context.Context, in sysin.SendCodeInp) (err error)
|
||||||
OnlineExec(ctx context.Context, in sysin.OnlineExecInp) (err error)
|
GetTemplate(ctx context.Context, template string, config *model.SmsConfig) (val string, err error)
|
||||||
|
AllowSend(ctx context.Context, models *entity.SysSmsLog, config *model.SmsConfig) (err error)
|
||||||
|
VerifyCode(ctx context.Context, in sysin.VerifyCodeInp) (err error)
|
||||||
}
|
}
|
||||||
ISysCurdDemo interface {
|
ISysAddonsConfig interface {
|
||||||
Model(ctx context.Context, option ...*handler.Option) *gdb.Model
|
GetConfigByGroup(ctx context.Context, in sysin.GetAddonsConfigInp) (res *sysin.GetAddonsConfigModel, err error)
|
||||||
List(ctx context.Context, in sysin.CurdDemoListInp) (list []*sysin.CurdDemoListModel, totalCount int, err error)
|
ConversionType(ctx context.Context, models *entity.SysAddonsConfig) (value interface{}, err error)
|
||||||
Export(ctx context.Context, in sysin.CurdDemoListInp) (err error)
|
UpdateConfigByGroup(ctx context.Context, in sysin.UpdateAddonsConfigInp) error
|
||||||
Edit(ctx context.Context, in sysin.CurdDemoEditInp) (err error)
|
}
|
||||||
Delete(ctx context.Context, in sysin.CurdDemoDeleteInp) (err error)
|
ISysConfig interface {
|
||||||
MaxSort(ctx context.Context, in sysin.CurdDemoMaxSortInp) (res *sysin.CurdDemoMaxSortModel, err error)
|
GetLoadCache(ctx context.Context) (conf *model.CacheConfig, err error)
|
||||||
View(ctx context.Context, in sysin.CurdDemoViewInp) (res *sysin.CurdDemoViewModel, err error)
|
GetLoadGenerate(ctx context.Context) (conf *model.GenerateConfig, err error)
|
||||||
Status(ctx context.Context, in sysin.CurdDemoStatusInp) (err error)
|
GetSms(ctx context.Context) (conf *model.SmsConfig, err error)
|
||||||
Switch(ctx context.Context, in sysin.CurdDemoSwitchInp) (err error)
|
GetGeo(ctx context.Context) (conf *model.GeoConfig, err error)
|
||||||
|
GetUpload(ctx context.Context) (conf *model.UploadConfig, err error)
|
||||||
|
GetSmtp(ctx context.Context) (conf *model.EmailConfig, err error)
|
||||||
|
GetBasic(ctx context.Context) (conf *model.BasicConfig, err error)
|
||||||
|
GetLoadSSL(ctx context.Context) (conf *model.SSLConfig, err error)
|
||||||
|
GetLoadLog(ctx context.Context) (conf *model.LogConfig, err error)
|
||||||
|
GetLoadServeLog(ctx context.Context) (conf *model.ServeLogConfig, 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
|
||||||
}
|
}
|
||||||
ISysEmsLog interface {
|
ISysEmsLog interface {
|
||||||
Delete(ctx context.Context, in sysin.EmsLogDeleteInp) error
|
Delete(ctx context.Context, in sysin.EmsLogDeleteInp) error
|
||||||
@@ -49,48 +60,6 @@ type (
|
|||||||
AllowSend(ctx context.Context, models *entity.SysEmsLog, config *model.EmailConfig) (err error)
|
AllowSend(ctx context.Context, models *entity.SysEmsLog, config *model.EmailConfig) (err error)
|
||||||
VerifyCode(ctx context.Context, in sysin.VerifyEmsCodeInp) (err error)
|
VerifyCode(ctx context.Context, in sysin.VerifyEmsCodeInp) (err error)
|
||||||
}
|
}
|
||||||
ISysEmployeeBase interface {
|
|
||||||
Model(ctx context.Context, option ...*handler.Option) *gdb.Model
|
|
||||||
List(ctx context.Context, in sysin.EmployeeBaseListInp) (list []*sysin.EmployeeBaseListModel, totalCount int, err error)
|
|
||||||
Export(ctx context.Context, in sysin.EmployeeBaseListInp) (err error)
|
|
||||||
Edit(ctx context.Context, in sysin.EmployeeBaseEditInp) (err error)
|
|
||||||
Delete(ctx context.Context, in sysin.EmployeeBaseDeleteInp) (err error)
|
|
||||||
View(ctx context.Context, in sysin.EmployeeBaseViewInp) (res *sysin.EmployeeBaseViewModel, err error)
|
|
||||||
Status(ctx context.Context, in sysin.EmployeeBaseStatusInp) (err error)
|
|
||||||
}
|
|
||||||
ISysLoginLog interface {
|
|
||||||
Model(ctx context.Context) *gdb.Model
|
|
||||||
List(ctx context.Context, in sysin.LoginLogListInp) (list []*sysin.LoginLogListModel, totalCount int, err error)
|
|
||||||
Export(ctx context.Context, in sysin.LoginLogListInp) (err error)
|
|
||||||
Delete(ctx context.Context, in sysin.LoginLogDeleteInp) (err error)
|
|
||||||
View(ctx context.Context, in sysin.LoginLogViewInp) (res *sysin.LoginLogViewModel, err error)
|
|
||||||
Push(ctx context.Context, in sysin.LoginLogPushInp)
|
|
||||||
RealWrite(ctx context.Context, models entity.SysLoginLog) (err error)
|
|
||||||
}
|
|
||||||
ISysAddonsConfig interface {
|
|
||||||
GetConfigByGroup(ctx context.Context, in sysin.GetAddonsConfigInp) (res *sysin.GetAddonsConfigModel, err error)
|
|
||||||
ConversionType(ctx context.Context, models *entity.SysAddonsConfig) (value interface{}, err error)
|
|
||||||
UpdateConfigByGroup(ctx context.Context, in sysin.UpdateAddonsConfigInp) error
|
|
||||||
}
|
|
||||||
ISysBlacklist interface {
|
|
||||||
Delete(ctx context.Context, in sysin.BlacklistDeleteInp) (err 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 int, err error)
|
|
||||||
VariableLoad(ctx context.Context, err error)
|
|
||||||
Load(ctx context.Context)
|
|
||||||
}
|
|
||||||
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 int, err error)
|
|
||||||
Select(ctx context.Context, in sysin.CronGroupSelectInp) (res *sysin.CronGroupSelectModel, err error)
|
|
||||||
}
|
|
||||||
ISysGenCodes interface {
|
ISysGenCodes interface {
|
||||||
Delete(ctx context.Context, in sysin.GenCodesDeleteInp) error
|
Delete(ctx context.Context, in sysin.GenCodesDeleteInp) error
|
||||||
Edit(ctx context.Context, in sysin.GenCodesEditInp) (res *sysin.GenCodesEditModel, err error)
|
Edit(ctx context.Context, in sysin.GenCodesEditInp) (res *sysin.GenCodesEditModel, err error)
|
||||||
@@ -117,55 +86,6 @@ type (
|
|||||||
UniqueId(ctx context.Context, in sysin.ProvincesUniqueIdInp) (res *sysin.ProvincesUniqueIdModel, err error)
|
UniqueId(ctx context.Context, in sysin.ProvincesUniqueIdInp) (res *sysin.ProvincesUniqueIdModel, err error)
|
||||||
Select(ctx context.Context, in sysin.ProvincesSelectInp) (res *sysin.ProvincesSelectModel, err error)
|
Select(ctx context.Context, in sysin.ProvincesSelectInp) (res *sysin.ProvincesSelectModel, err error)
|
||||||
}
|
}
|
||||||
ISysServeLog interface {
|
|
||||||
Model(ctx context.Context) *gdb.Model
|
|
||||||
List(ctx context.Context, in sysin.ServeLogListInp) (list []*sysin.ServeLogListModel, totalCount int, err error)
|
|
||||||
Export(ctx context.Context, in sysin.ServeLogListInp) (err error)
|
|
||||||
Delete(ctx context.Context, in sysin.ServeLogDeleteInp) (err error)
|
|
||||||
View(ctx context.Context, in sysin.ServeLogViewInp) (res *sysin.ServeLogViewModel, err error)
|
|
||||||
RealWrite(ctx context.Context, models entity.SysServeLog) (err error)
|
|
||||||
}
|
|
||||||
ISysSmsLog interface {
|
|
||||||
Delete(ctx context.Context, in sysin.SmsLogDeleteInp) error
|
|
||||||
Edit(ctx context.Context, in sysin.SmsLogEditInp) (err error)
|
|
||||||
Status(ctx context.Context, in sysin.SmsLogStatusInp) (err error)
|
|
||||||
MaxSort(ctx context.Context, in sysin.SmsLogMaxSortInp) (*sysin.SmsLogMaxSortModel, error)
|
|
||||||
View(ctx context.Context, in sysin.SmsLogViewInp) (res *sysin.SmsLogViewModel, err error)
|
|
||||||
List(ctx context.Context, in sysin.SmsLogListInp) (list []*sysin.SmsLogListModel, totalCount int, err error)
|
|
||||||
SendCode(ctx context.Context, in sysin.SendCodeInp) (err error)
|
|
||||||
GetTemplate(ctx context.Context, template string, config *model.SmsConfig) (val string, err error)
|
|
||||||
AllowSend(ctx context.Context, models *entity.SysSmsLog, config *model.SmsConfig) (err error)
|
|
||||||
VerifyCode(ctx context.Context, in sysin.VerifyCodeInp) (err error)
|
|
||||||
}
|
|
||||||
ISysAddons interface {
|
|
||||||
List(ctx context.Context, in sysin.AddonsListInp) (list []*sysin.AddonsListModel, totalCount int, err error)
|
|
||||||
Selects(ctx context.Context, in sysin.AddonsSelectsInp) (res *sysin.AddonsSelectsModel, err error)
|
|
||||||
Build(ctx context.Context, in sysin.AddonsBuildInp) (err error)
|
|
||||||
Install(ctx context.Context, in sysin.AddonsInstallInp) (err error)
|
|
||||||
Upgrade(ctx context.Context, in sysin.AddonsUpgradeInp) (err error)
|
|
||||||
UnInstall(ctx context.Context, in sysin.AddonsUnInstallInp) (err error)
|
|
||||||
}
|
|
||||||
ISysConfig interface {
|
|
||||||
GetLoadCache(ctx context.Context) (conf *model.CacheConfig, err error)
|
|
||||||
GetLoadGenerate(ctx context.Context) (conf *model.GenerateConfig, err error)
|
|
||||||
GetSms(ctx context.Context) (conf *model.SmsConfig, err error)
|
|
||||||
GetGeo(ctx context.Context) (conf *model.GeoConfig, err error)
|
|
||||||
GetUpload(ctx context.Context) (conf *model.UploadConfig, err error)
|
|
||||||
GetSmtp(ctx context.Context) (conf *model.EmailConfig, err error)
|
|
||||||
GetBasic(ctx context.Context) (conf *model.BasicConfig, err error)
|
|
||||||
GetLoadSSL(ctx context.Context) (conf *model.SSLConfig, err error)
|
|
||||||
GetLoadLog(ctx context.Context) (conf *model.LogConfig, err error)
|
|
||||||
GetLoadServeLog(ctx context.Context) (conf *model.ServeLogConfig, 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
|
|
||||||
}
|
|
||||||
ISysDictType interface {
|
|
||||||
Tree(ctx context.Context) (list []*sysin.DictTypeTree, err error)
|
|
||||||
Delete(ctx context.Context, in sysin.DictTypeDeleteInp) error
|
|
||||||
Edit(ctx context.Context, in sysin.DictTypeEditInp) (err error)
|
|
||||||
TreeSelect(ctx context.Context, in sysin.DictTreeSelectInp) (list []*sysin.DictTypeTree, err error)
|
|
||||||
}
|
|
||||||
ISysAttachment interface {
|
ISysAttachment interface {
|
||||||
Delete(ctx context.Context, in sysin.AttachmentDeleteInp) error
|
Delete(ctx context.Context, in sysin.AttachmentDeleteInp) error
|
||||||
Edit(ctx context.Context, in sysin.AttachmentEditInp) (err error)
|
Edit(ctx context.Context, in sysin.AttachmentEditInp) (err error)
|
||||||
@@ -175,11 +95,14 @@ type (
|
|||||||
List(ctx context.Context, in sysin.AttachmentListInp) (list []*sysin.AttachmentListModel, totalCount int, err error)
|
List(ctx context.Context, in sysin.AttachmentListInp) (list []*sysin.AttachmentListModel, totalCount int, err error)
|
||||||
Add(ctx context.Context, meta *sysin.UploadFileMeta, fullPath, drive string) (data *entity.SysAttachment, err error)
|
Add(ctx context.Context, meta *sysin.UploadFileMeta, fullPath, drive string) (data *entity.SysAttachment, err error)
|
||||||
}
|
}
|
||||||
ISysDictData interface {
|
ISysCronGroup interface {
|
||||||
Delete(ctx context.Context, in sysin.DictDataDeleteInp) error
|
Delete(ctx context.Context, in sysin.CronGroupDeleteInp) error
|
||||||
Edit(ctx context.Context, in sysin.DictDataEditInp) (err error)
|
Edit(ctx context.Context, in sysin.CronGroupEditInp) (err error)
|
||||||
List(ctx context.Context, in sysin.DictDataListInp) (list []*sysin.DictDataListModel, totalCount int, err error)
|
Status(ctx context.Context, in sysin.CronGroupStatusInp) (err error)
|
||||||
Select(ctx context.Context, in sysin.DataSelectInp) (list sysin.DataSelectModel, 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 int, err error)
|
||||||
|
Select(ctx context.Context, in sysin.CronGroupSelectInp) (res *sysin.CronGroupSelectModel, err error)
|
||||||
}
|
}
|
||||||
ISysLog interface {
|
ISysLog interface {
|
||||||
Export(ctx context.Context, in sysin.LogListInp) (err error)
|
Export(ctx context.Context, in sysin.LogListInp) (err error)
|
||||||
@@ -190,49 +113,105 @@ type (
|
|||||||
Delete(ctx context.Context, in sysin.LogDeleteInp) (err error)
|
Delete(ctx context.Context, in sysin.LogDeleteInp) (err error)
|
||||||
List(ctx context.Context, in sysin.LogListInp) (list []*sysin.LogListModel, totalCount int, err error)
|
List(ctx context.Context, in sysin.LogListInp) (list []*sysin.LogListModel, totalCount int, err error)
|
||||||
}
|
}
|
||||||
|
ISysCurdDemo interface {
|
||||||
|
Model(ctx context.Context, option ...*handler.Option) *gdb.Model
|
||||||
|
List(ctx context.Context, in sysin.CurdDemoListInp) (list []*sysin.CurdDemoListModel, totalCount int, err error)
|
||||||
|
Export(ctx context.Context, in sysin.CurdDemoListInp) (err error)
|
||||||
|
Edit(ctx context.Context, in sysin.CurdDemoEditInp) (err error)
|
||||||
|
Delete(ctx context.Context, in sysin.CurdDemoDeleteInp) (err error)
|
||||||
|
MaxSort(ctx context.Context, in sysin.CurdDemoMaxSortInp) (res *sysin.CurdDemoMaxSortModel, err error)
|
||||||
|
View(ctx context.Context, in sysin.CurdDemoViewInp) (res *sysin.CurdDemoViewModel, err error)
|
||||||
|
Status(ctx context.Context, in sysin.CurdDemoStatusInp) (err error)
|
||||||
|
Switch(ctx context.Context, in sysin.CurdDemoSwitchInp) (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 int, err error)
|
||||||
|
Select(ctx context.Context, in sysin.DataSelectInp) (list sysin.DataSelectModel, err error)
|
||||||
|
}
|
||||||
|
ISysDictType interface {
|
||||||
|
Tree(ctx context.Context) (list []*sysin.DictTypeTree, err error)
|
||||||
|
Delete(ctx context.Context, in sysin.DictTypeDeleteInp) error
|
||||||
|
Edit(ctx context.Context, in sysin.DictTypeEditInp) (err error)
|
||||||
|
TreeSelect(ctx context.Context, in sysin.DictTreeSelectInp) (list []*sysin.DictTypeTree, err error)
|
||||||
|
}
|
||||||
|
ISysAddons interface {
|
||||||
|
List(ctx context.Context, in sysin.AddonsListInp) (list []*sysin.AddonsListModel, totalCount int, err error)
|
||||||
|
Selects(ctx context.Context, in sysin.AddonsSelectsInp) (res *sysin.AddonsSelectsModel, err error)
|
||||||
|
Build(ctx context.Context, in sysin.AddonsBuildInp) (err error)
|
||||||
|
Install(ctx context.Context, in sysin.AddonsInstallInp) (err error)
|
||||||
|
Upgrade(ctx context.Context, in sysin.AddonsUpgradeInp) (err error)
|
||||||
|
UnInstall(ctx context.Context, in sysin.AddonsUnInstallInp) (err error)
|
||||||
|
}
|
||||||
|
ISysBlacklist interface {
|
||||||
|
Delete(ctx context.Context, in sysin.BlacklistDeleteInp) (err 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 int, err error)
|
||||||
|
VariableLoad(ctx context.Context, err error)
|
||||||
|
Load(ctx context.Context)
|
||||||
|
}
|
||||||
|
ISysCron interface {
|
||||||
|
StartCron(ctx context.Context)
|
||||||
|
Delete(ctx context.Context, in sysin.CronDeleteInp) (err 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) (res *sysin.CronMaxSortModel, err error)
|
||||||
|
View(ctx context.Context, in sysin.CronViewInp) (res *sysin.CronViewModel, err error)
|
||||||
|
List(ctx context.Context, in sysin.CronListInp) (list []*sysin.CronListModel, totalCount int, err error)
|
||||||
|
OnlineExec(ctx context.Context, in sysin.OnlineExecInp) (err error)
|
||||||
|
}
|
||||||
|
ISysLoginLog interface {
|
||||||
|
Model(ctx context.Context) *gdb.Model
|
||||||
|
List(ctx context.Context, in sysin.LoginLogListInp) (list []*sysin.LoginLogListModel, totalCount int, err error)
|
||||||
|
Export(ctx context.Context, in sysin.LoginLogListInp) (err error)
|
||||||
|
Delete(ctx context.Context, in sysin.LoginLogDeleteInp) (err error)
|
||||||
|
View(ctx context.Context, in sysin.LoginLogViewInp) (res *sysin.LoginLogViewModel, err error)
|
||||||
|
Push(ctx context.Context, in sysin.LoginLogPushInp)
|
||||||
|
RealWrite(ctx context.Context, models entity.SysLoginLog) (err error)
|
||||||
|
}
|
||||||
|
ISysServeLog interface {
|
||||||
|
Model(ctx context.Context) *gdb.Model
|
||||||
|
List(ctx context.Context, in sysin.ServeLogListInp) (list []*sysin.ServeLogListModel, totalCount int, err error)
|
||||||
|
Export(ctx context.Context, in sysin.ServeLogListInp) (err error)
|
||||||
|
Delete(ctx context.Context, in sysin.ServeLogDeleteInp) (err error)
|
||||||
|
View(ctx context.Context, in sysin.ServeLogViewInp) (res *sysin.ServeLogViewModel, err error)
|
||||||
|
RealWrite(ctx context.Context, models entity.SysServeLog) (err error)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
localSysServeLog ISysServeLog
|
localSysAttachment ISysAttachment
|
||||||
localSysSmsLog ISysSmsLog
|
localSysCronGroup ISysCronGroup
|
||||||
localSysAddons ISysAddons
|
localSysLog ISysLog
|
||||||
localSysConfig ISysConfig
|
localSysCurdDemo ISysCurdDemo
|
||||||
|
localSysDictData ISysDictData
|
||||||
localSysDictType ISysDictType
|
localSysDictType ISysDictType
|
||||||
|
localSysAddons ISysAddons
|
||||||
|
localSysBlacklist ISysBlacklist
|
||||||
|
localSysCron ISysCron
|
||||||
|
localSysLoginLog ISysLoginLog
|
||||||
|
localSysServeLog ISysServeLog
|
||||||
|
localSysAddonsConfig ISysAddonsConfig
|
||||||
|
localSysConfig ISysConfig
|
||||||
|
localSysEmsLog ISysEmsLog
|
||||||
localSysGenCodes ISysGenCodes
|
localSysGenCodes ISysGenCodes
|
||||||
localSysProvinces ISysProvinces
|
localSysProvinces ISysProvinces
|
||||||
localSysAttachment ISysAttachment
|
localSysSmsLog ISysSmsLog
|
||||||
localSysDictData ISysDictData
|
|
||||||
localSysLog ISysLog
|
|
||||||
localSysCron ISysCron
|
|
||||||
localSysCurdDemo ISysCurdDemo
|
|
||||||
localSysEmsLog ISysEmsLog
|
|
||||||
localSysAddonsConfig ISysAddonsConfig
|
|
||||||
localSysBlacklist ISysBlacklist
|
|
||||||
localSysCronGroup ISysCronGroup
|
|
||||||
localSysEmployeeBase ISysEmployeeBase
|
|
||||||
localSysLoginLog ISysLoginLog
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func SysAddonsConfig() ISysAddonsConfig {
|
func SysAttachment() ISysAttachment {
|
||||||
if localSysAddonsConfig == nil {
|
if localSysAttachment == nil {
|
||||||
panic("implement not found for interface ISysAddonsConfig, forgot register?")
|
panic("implement not found for interface ISysAttachment, forgot register?")
|
||||||
}
|
}
|
||||||
return localSysAddonsConfig
|
return localSysAttachment
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterSysAddonsConfig(i ISysAddonsConfig) {
|
func RegisterSysAttachment(i ISysAttachment) {
|
||||||
localSysAddonsConfig = i
|
localSysAttachment = 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 SysCronGroup() ISysCronGroup {
|
func SysCronGroup() ISysCronGroup {
|
||||||
@@ -246,26 +225,48 @@ func RegisterSysCronGroup(i ISysCronGroup) {
|
|||||||
localSysCronGroup = i
|
localSysCronGroup = i
|
||||||
}
|
}
|
||||||
|
|
||||||
func SysEmployeeBase() ISysEmployeeBase {
|
func SysLog() ISysLog {
|
||||||
if localSysEmployeeBase == nil {
|
if localSysLog == nil {
|
||||||
panic("implement not found for interface ISysEmployeeBase, forgot register?")
|
panic("implement not found for interface ISysLog, forgot register?")
|
||||||
}
|
}
|
||||||
return localSysEmployeeBase
|
return localSysLog
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterSysEmployeeBase(i ISysEmployeeBase) {
|
func RegisterSysLog(i ISysLog) {
|
||||||
localSysEmployeeBase = i
|
localSysLog = i
|
||||||
}
|
}
|
||||||
|
|
||||||
func SysLoginLog() ISysLoginLog {
|
func SysCurdDemo() ISysCurdDemo {
|
||||||
if localSysLoginLog == nil {
|
if localSysCurdDemo == nil {
|
||||||
panic("implement not found for interface ISysLoginLog, forgot register?")
|
panic("implement not found for interface ISysCurdDemo, forgot register?")
|
||||||
}
|
}
|
||||||
return localSysLoginLog
|
return localSysCurdDemo
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterSysLoginLog(i ISysLoginLog) {
|
func RegisterSysCurdDemo(i ISysCurdDemo) {
|
||||||
localSysLoginLog = i
|
localSysCurdDemo = 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 SysAddons() ISysAddons {
|
func SysAddons() ISysAddons {
|
||||||
@@ -279,6 +280,61 @@ func RegisterSysAddons(i ISysAddons) {
|
|||||||
localSysAddons = i
|
localSysAddons = 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 SysCron() ISysCron {
|
||||||
|
if localSysCron == nil {
|
||||||
|
panic("implement not found for interface ISysCron, forgot register?")
|
||||||
|
}
|
||||||
|
return localSysCron
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterSysCron(i ISysCron) {
|
||||||
|
localSysCron = i
|
||||||
|
}
|
||||||
|
|
||||||
|
func SysLoginLog() ISysLoginLog {
|
||||||
|
if localSysLoginLog == nil {
|
||||||
|
panic("implement not found for interface ISysLoginLog, forgot register?")
|
||||||
|
}
|
||||||
|
return localSysLoginLog
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterSysLoginLog(i ISysLoginLog) {
|
||||||
|
localSysLoginLog = i
|
||||||
|
}
|
||||||
|
|
||||||
|
func SysServeLog() ISysServeLog {
|
||||||
|
if localSysServeLog == nil {
|
||||||
|
panic("implement not found for interface ISysServeLog, forgot register?")
|
||||||
|
}
|
||||||
|
return localSysServeLog
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterSysServeLog(i ISysServeLog) {
|
||||||
|
localSysServeLog = i
|
||||||
|
}
|
||||||
|
|
||||||
|
func SysAddonsConfig() ISysAddonsConfig {
|
||||||
|
if localSysAddonsConfig == nil {
|
||||||
|
panic("implement not found for interface ISysAddonsConfig, forgot register?")
|
||||||
|
}
|
||||||
|
return localSysAddonsConfig
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterSysAddonsConfig(i ISysAddonsConfig) {
|
||||||
|
localSysAddonsConfig = i
|
||||||
|
}
|
||||||
|
|
||||||
func SysConfig() ISysConfig {
|
func SysConfig() ISysConfig {
|
||||||
if localSysConfig == nil {
|
if localSysConfig == nil {
|
||||||
panic("implement not found for interface ISysConfig, forgot register?")
|
panic("implement not found for interface ISysConfig, forgot register?")
|
||||||
@@ -290,15 +346,15 @@ func RegisterSysConfig(i ISysConfig) {
|
|||||||
localSysConfig = i
|
localSysConfig = i
|
||||||
}
|
}
|
||||||
|
|
||||||
func SysDictType() ISysDictType {
|
func SysEmsLog() ISysEmsLog {
|
||||||
if localSysDictType == nil {
|
if localSysEmsLog == nil {
|
||||||
panic("implement not found for interface ISysDictType, forgot register?")
|
panic("implement not found for interface ISysEmsLog, forgot register?")
|
||||||
}
|
}
|
||||||
return localSysDictType
|
return localSysEmsLog
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterSysDictType(i ISysDictType) {
|
func RegisterSysEmsLog(i ISysEmsLog) {
|
||||||
localSysDictType = i
|
localSysEmsLog = i
|
||||||
}
|
}
|
||||||
|
|
||||||
func SysGenCodes() ISysGenCodes {
|
func SysGenCodes() ISysGenCodes {
|
||||||
@@ -323,17 +379,6 @@ func RegisterSysProvinces(i ISysProvinces) {
|
|||||||
localSysProvinces = i
|
localSysProvinces = i
|
||||||
}
|
}
|
||||||
|
|
||||||
func SysServeLog() ISysServeLog {
|
|
||||||
if localSysServeLog == nil {
|
|
||||||
panic("implement not found for interface ISysServeLog, forgot register?")
|
|
||||||
}
|
|
||||||
return localSysServeLog
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterSysServeLog(i ISysServeLog) {
|
|
||||||
localSysServeLog = i
|
|
||||||
}
|
|
||||||
|
|
||||||
func SysSmsLog() ISysSmsLog {
|
func SysSmsLog() ISysSmsLog {
|
||||||
if localSysSmsLog == nil {
|
if localSysSmsLog == nil {
|
||||||
panic("implement not found for interface ISysSmsLog, forgot register?")
|
panic("implement not found for interface ISysSmsLog, forgot register?")
|
||||||
@@ -344,69 +389,3 @@ func SysSmsLog() ISysSmsLog {
|
|||||||
func RegisterSysSmsLog(i ISysSmsLog) {
|
func RegisterSysSmsLog(i ISysSmsLog) {
|
||||||
localSysSmsLog = i
|
localSysSmsLog = i
|
||||||
}
|
}
|
||||||
|
|
||||||
func SysAttachment() ISysAttachment {
|
|
||||||
if localSysAttachment == nil {
|
|
||||||
panic("implement not found for interface ISysAttachment, forgot register?")
|
|
||||||
}
|
|
||||||
return localSysAttachment
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterSysAttachment(i ISysAttachment) {
|
|
||||||
localSysAttachment = 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 SysLog() ISysLog {
|
|
||||||
if localSysLog == nil {
|
|
||||||
panic("implement not found for interface ISysLog, forgot register?")
|
|
||||||
}
|
|
||||||
return localSysLog
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterSysLog(i ISysLog) {
|
|
||||||
localSysLog = 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 SysCurdDemo() ISysCurdDemo {
|
|
||||||
if localSysCurdDemo == nil {
|
|
||||||
panic("implement not found for interface ISysCurdDemo, forgot register?")
|
|
||||||
}
|
|
||||||
return localSysCurdDemo
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterSysCurdDemo(i ISysCurdDemo) {
|
|
||||||
localSysCurdDemo = i
|
|
||||||
}
|
|
||||||
|
|
||||||
func SysEmsLog() ISysEmsLog {
|
|
||||||
if localSysEmsLog == nil {
|
|
||||||
panic("implement not found for interface ISysEmsLog, forgot register?")
|
|
||||||
}
|
|
||||||
return localSysEmsLog
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterSysEmsLog(i ISysEmsLog) {
|
|
||||||
localSysEmsLog = i
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user