Files
mce/internal/model/community_fund.go
Victor_Jay c3c7390498
Some checks failed
CI / Lint + Build (push) Has been cancelled
refactor: 统一 BaseModel 嵌入,修复 primaryKey 大小写不一致
变更模型:
- Post: 嵌入 BaseModel,移除手动 ID/CreatedAt/UpdatedAt/DeletedAt
- Comment: 嵌入 BaseModel,保留 is_deleted 自定义软删除
- Announcement: 嵌入 BaseModel
- Category: 嵌入 BaseModel
- Folder + FolderItem: 嵌入 BaseModel
- CommunityFund: primaryKey → primarykey (统一小写)
2026-06-22 03:09:19 +08:00

8 lines
233 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
// CommunityFund 公户余额单行表id=1
type CommunityFund struct {
ID uint `gorm:"primarykey" json:"id"`
Balance int `gorm:"not null;default:0" json:"balance"` // 余额×10允许负数
}