mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
代码生成到非system模块细节修复
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
type authRule struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var AuthRule = new(authRule)
|
||||
|
||||
@@ -7,12 +7,12 @@ import (
|
||||
"gfast/app/system/service"
|
||||
)
|
||||
|
||||
type systemBase struct {
|
||||
type SystemBase struct {
|
||||
api.CommonBase
|
||||
}
|
||||
|
||||
// GetCurrentUser 获取当前登陆用户信息
|
||||
func (c *systemBase) GetCurrentUser(ctx context.Context) *dao.CtxUser {
|
||||
func (c *SystemBase) GetCurrentUser(ctx context.Context) *dao.CtxUser {
|
||||
context := service.Context.Get(ctx)
|
||||
if context == nil {
|
||||
return nil
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
type sysConfig struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysConfig = new(sysConfig)
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
type dept struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var Dept = new(dept)
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
type dictData struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var DictData = new(dictData)
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
type dictType struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var DictType = new(dictType)
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
type sysJob struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysJob = new(sysJob)
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
type sysLoginLog struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysLoginLog = new(sysLoginLog)
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
)
|
||||
|
||||
type sysMonitor struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
startTime *gtime.Time
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
type sysOperLog struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysOperLog = new(sysOperLog)
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
type sysPost struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysPost = new(sysPost)
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
type sysRole struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysRole = new(sysRole)
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
type user struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var User = new(user)
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
type sysUserOnline struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysUserOnline = new(sysUserOnline)
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
)
|
||||
|
||||
type sysWebSet struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var SysWebSet = new(sysWebSet)
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
)
|
||||
|
||||
type toolsGenTable struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var ToolsGenTable = new(toolsGenTable)
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
type upload struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var Upload = new(upload)
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
)
|
||||
|
||||
type userProfile struct {
|
||||
systemBase
|
||||
SystemBase
|
||||
}
|
||||
|
||||
var UserProfile = new(userProfile)
|
||||
|
||||
Reference in New Issue
Block a user