[feat] 移除 ResFieldByMap, ResFieldByAnys 类型
This commit is contained in:
+9
-13
@@ -1,19 +1,15 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"git.fsdpf.net/go/contracts/res_type"
|
||||
)
|
||||
|
||||
type PrintTemplate struct {
|
||||
Uuid string `db:"uuid"`
|
||||
ResourceUuid string `db:"resource_uuid"` // 所属资源UUID
|
||||
Code string `db:"code"` // 打印模板标识
|
||||
Name string `db:"name"` // 打印模板名称
|
||||
PrimaryKey string `db:"primaryKey"` // 主键标识
|
||||
Roles res_type.ResFieldByAnys `db:"roles"` // 打印权限
|
||||
Template res_type.ResFieldByMap `db:"template"` // 打印权限
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
Uuid string `db:"uuid"`
|
||||
ResourceUuid string `db:"resource_uuid"` // 所属资源UUID
|
||||
Code string `db:"code"` // 打印模板标识
|
||||
Name string `db:"name"` // 打印模板名称
|
||||
PrimaryKey string `db:"primaryKey"` // 主键标识
|
||||
Roles []string `db:"roles"` // 打印权限
|
||||
Template map[string]any `db:"template"` // 打印权限
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
}
|
||||
|
||||
type GetPrintTemplate func(uuid string) (PrintTemplate, bool)
|
||||
|
||||
Reference in New Issue
Block a user