You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.7 KiB
Go
53 lines
1.7 KiB
Go
package Model
|
|
|
|
/**
|
|
|
|
* t_sysset类的描述
|
|
|
|
* @author miSter
|
|
|
|
* @email hdfs010@163.com
|
|
|
|
* @date no data
|
|
|
|
* @link <a href=http://www.philisense.com>北京飞利信电子技术有限公司</a>
|
|
|
|
*/
|
|
import (
|
|
"time"
|
|
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
const (
|
|
TSysset_Id = "id" //id
|
|
TSysset_Sys_key = "sys_key" //sys_key
|
|
TSysset_Sys_title = "sys_title" //sys_title
|
|
TSysset_Sys_type = "sys_type" //sys_type
|
|
TSysset_Sys_value = "sys_value" //sys_value
|
|
TSysset_Sys_pid = "sys_pid" //sys_pid
|
|
TSysset_Sys_order = "sys_order" //sys_order
|
|
TSysset_Sys_memo = "sys_memo" //sys_memo
|
|
TSysset_Sys_creattime = "sys_creattime" //sys_creattime
|
|
)
|
|
|
|
type TSysset struct {
|
|
Id string `gorm:"column:id;primary_key" json:"id"` //id
|
|
Sys_key string `gorm:"column:sys_key" json:"sys_key"` //sys_key
|
|
Sys_title string `gorm:"column:sys_title" json:"sys_title"` //sys_title
|
|
Sys_type string `gorm:"column:sys_type" json:"sys_type"` //sys_type
|
|
Sys_value string `gorm:"column:sys_value" json:"sys_value"` //sys_value
|
|
Sys_pid string `gorm:"column:sys_pid" json:"sys_pid"` //sys_pid
|
|
Sys_order int64 `gorm:"column:sys_order" json:"sys_order"` //sys_order
|
|
Sys_memo string `gorm:"column:sys_memo" json:"sys_memo"` //sys_memo
|
|
Sys_creattime time.Time `gorm:"column:sys_creattime" json:"sys_creattime"` //sys_creattime
|
|
}
|
|
|
|
func (TSysset) TableName() string {
|
|
tableName := "t_sysset"
|
|
if viper.GetString("database.dbtype") == "kingbase" || viper.GetString("database.dbtype") == "postgres" {
|
|
return viper.GetString("database.dbnames") + "." + tableName
|
|
}
|
|
return tableName
|
|
}
|