2e2c161770
- backed/: Go Fiber backend with cpdaily integration - frondend/: Vue 3 + Vite frontend - Dockerfile: multi-stage build (Node → Go → Alpine) - deploy/docker-compose.yml: production compose file - .woodpecker/build.yml: CI/CD with blue-green zero-downtime deploy - /health endpoint for deployment health checks - Port 8884/8885 blue-green swap via 1Panel OpenResty
21 lines
644 B
Go
21 lines
644 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// TicketNotification 工单通知(管理员操作后通知用户)
|
|
type TicketNotification struct {
|
|
ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
|
|
UserID uint `gorm:"not null;index" json:"userId"`
|
|
TicketID uint `gorm:"not null;index" json:"ticketId"`
|
|
Title string `gorm:"size:200;not null" json:"title"`
|
|
Content string `gorm:"size:500;not null" json:"content"`
|
|
IsRead bool `gorm:"not null;default:false;index" json:"isRead"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
func (TicketNotification) TableName() string {
|
|
return "ticket_notifications"
|
|
}
|