代码生成到非system模块细节修复

This commit is contained in:
yxh
2021-08-06 20:36:55 +08:00
parent f890e08cd3
commit 9f706c366f
20 changed files with 31 additions and 24 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
)
type authRule struct {
systemBase
SystemBase
}
var AuthRule = new(authRule)
+2 -2
View File
@@ -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
+1 -1
View File
@@ -18,7 +18,7 @@ import (
)
type sysConfig struct {
systemBase
SystemBase
}
var SysConfig = new(sysConfig)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
)
type dept struct {
systemBase
SystemBase
}
var Dept = new(dept)
+1 -1
View File
@@ -18,7 +18,7 @@ import (
)
type dictData struct {
systemBase
SystemBase
}
var DictData = new(dictData)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
)
type dictType struct {
systemBase
SystemBase
}
var DictType = new(dictType)
+1 -1
View File
@@ -16,7 +16,7 @@ import (
)
type sysJob struct {
systemBase
SystemBase
}
var SysJob = new(sysJob)
+1 -1
View File
@@ -16,7 +16,7 @@ import (
)
type sysLoginLog struct {
systemBase
SystemBase
}
var SysLoginLog = new(sysLoginLog)
+1 -1
View File
@@ -26,7 +26,7 @@ import (
)
type sysMonitor struct {
systemBase
SystemBase
startTime *gtime.Time
}
+1 -1
View File
@@ -19,7 +19,7 @@ import (
)
type sysOperLog struct {
systemBase
SystemBase
}
var SysOperLog = new(sysOperLog)
+1 -1
View File
@@ -16,7 +16,7 @@ import (
)
type sysPost struct {
systemBase
SystemBase
}
var SysPost = new(sysPost)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
)
type sysRole struct {
systemBase
SystemBase
}
var SysRole = new(sysRole)
+1 -1
View File
@@ -10,7 +10,7 @@ import (
)
type user struct {
systemBase
SystemBase
}
var User = new(user)
+1 -1
View File
@@ -16,7 +16,7 @@ import (
)
type sysUserOnline struct {
systemBase
SystemBase
}
var SysUserOnline = new(sysUserOnline)
+1 -1
View File
@@ -17,7 +17,7 @@ import (
)
type sysWebSet struct {
systemBase
SystemBase
}
var SysWebSet = new(sysWebSet)
+1 -1
View File
@@ -21,7 +21,7 @@ import (
)
type toolsGenTable struct {
systemBase
SystemBase
}
var ToolsGenTable = new(toolsGenTable)
+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
type upload struct {
systemBase
SystemBase
}
var Upload = new(upload)
+1 -1
View File
@@ -17,7 +17,7 @@ import (
)
type userProfile struct {
systemBase
SystemBase
}
var UserProfile = new(userProfile)