1
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
var SystemTempObj map[string]*model.SystemTemp
|
var SystemTempObj map[string]*model.SystemTemp
|
||||||
|
|
||||||
func init() {
|
func Init() {
|
||||||
SystemTempObj = make(map[string]*model.SystemTemp, 0)
|
SystemTempObj = make(map[string]*model.SystemTemp, 0)
|
||||||
sysTempList, err := QuerySystemTemp()
|
sysTempList, err := QuerySystemTemp()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -10,15 +10,15 @@ type SystemTemp struct {
|
|||||||
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
|
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
|
||||||
LastOperator string `json:"last_operator" db:"last_operator"`
|
LastOperator string `json:"last_operator" db:"last_operator"`
|
||||||
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
||||||
TempName string `json:"temp_name" db:"temp_name"` // 模板名称
|
TempName string `json:"temp_name" db:"temp_name"` // 模板名称
|
||||||
TempRank string `json:"temp_rank" db:"temp_rank"` // 模板顺序
|
TempRank string `json:"temp_rank" db:"temp_rank"` // 模板顺序
|
||||||
Temp string `json:"temp" db:"temp"` // 模板
|
Temp string `orm:"type(text)" json:"temp" db:"temp"` // 模板
|
||||||
UserId string `json:"user_id" db:"user_id"` // 所属用户
|
UserId string `json:"user_id" db:"user_id"` // 所属用户
|
||||||
TempType string `json:"temp_type" db:"temp_type"` // 模板类型 user_store/user_consumer
|
TempType string `json:"temp_type" db:"temp_type"` // 模板类型 user_store/user_consumer
|
||||||
TempSize string `json:"temp_size" db:"temp_size"` // 模板尺寸 big/medium/small
|
TempSize string `json:"temp_size" db:"temp_size"` // 模板尺寸 big/medium/small
|
||||||
PrintSn string `json:"print_sn" db:"print_sn"` // 模板所属打印机
|
PrintSn string `json:"print_sn" db:"print_sn"` // 模板所属打印机
|
||||||
IsUse int `json:"is_use" db:"is_use"` // 默认使用 1-使用/2-不使用
|
IsUse int `json:"is_use" db:"is_use"` // 默认使用 1-使用/2-不使用
|
||||||
Properties string `json:"properties" db:"properties"` // 模板字段属性
|
Properties string `orm:"type(text)" json:"properties" db:"properties"` // 模板字段属性
|
||||||
}
|
}
|
||||||
|
|
||||||
//func (v *SystemTemp) TableUnique() [][]string {
|
//func (v *SystemTemp) TableUnique() [][]string {
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/dao"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/misc"
|
"git.rosy.net.cn/jx-callback/business/jxstore/misc"
|
||||||
_ "git.rosy.net.cn/jx-callback/business/model"
|
_ "git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -36,6 +37,7 @@ func Init() {
|
|||||||
cms.InitServiceInfo(Version, buildTime, GitCommit)
|
cms.InitServiceInfo(Version, buildTime, GitCommit)
|
||||||
misc.Init()
|
misc.Init()
|
||||||
controllers.Init()
|
controllers.Init()
|
||||||
|
dao.Init()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 返回true表示非运行服务
|
// 返回true表示非运行服务
|
||||||
|
|||||||
Reference in New Issue
Block a user