19 lines
526 B
Go
19 lines
526 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// GoodNews 喜报数据模型
|
|
type GoodNews struct {
|
|
gorm.Model
|
|
ID uint `json:"id" gorm:"primarykey"`
|
|
ProjectName string `json:"project_name"`
|
|
Points int `json:"points"`
|
|
Representative string `json:"representative"`
|
|
ImagePath string `json:"image_path"`
|
|
Office string `json:"office"`
|
|
UploadTime time.Time `json:"upload_time" gorm:"autoCreateTime"`
|
|
ImageURL string `json:"image_url" gorm:"-"`
|
|
} |