refactor: reorganize modules and add Linux build tooling
This commit is contained in:
29
module/base/passport/internal/models/passport_statistics.go
Normal file
29
module/base/passport/internal/models/passport_statistics.go
Normal file
@@ -0,0 +1,29 @@
|
||||
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
)
|
||||
|
||||
/*
|
||||
* PassportStatistics
|
||||
* Comment:
|
||||
* Version: 10
|
||||
* Created: 2022-04-12 10:41:13 , Updated:0001-01-01 00:00:00
|
||||
*/
|
||||
type PassportStatistics struct {
|
||||
types.Std_IICUDS
|
||||
types.Std_Passport
|
||||
Item string `gorm:"column:item;type:varchar(255);default:'';" json:"item"` // 统计项KEY
|
||||
Value int64 `gorm:"default:0;" json:"value"` // 统计项数
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&PassportStatistics{})
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *PassportStatistics) TableName() string {
|
||||
return "passport_statistics" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user