feat(stat):增加首页使用的提示和统计接口。

This commit is contained in:
徐涛
2022-08-23 14:50:26 +08:00
parent 5b2e107325
commit e135d976cd
6 changed files with 177 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
package model
import (
"time"
"github.com/shopspring/decimal"
)
@@ -46,3 +48,9 @@ type ParkSimplified struct {
func (ParkSimplified) TableName() string {
return "park"
}
type ParkPeriodStatistics struct {
Id string `xorm:"varchar(120) not null" json:"id"`
Name string `xorm:"varchar(120) not null" json:"name"`
Period *time.Time `xorm:"date" json:"period" time_format:"simple_date" time_location:"shanghai"`
}