已完成用户APP首期功能开发

交付用户端首期页面、配套接口、后台资源及测试文档。用户APP构建、静态分析和三个管理后台构建通过;完整测试仍有2项失败,后端模型注释检查未通过,详见交付记录。
This commit is contained in:
czl231
2026-09-13 00:57:32 +08:00
parent a0a4bb1218
commit 3ef33b531d
793 changed files with 40959 additions and 1204 deletions

View File

@@ -0,0 +1,19 @@
// 功能保存用户对真实业务消息的已读回执版本1.0.0。
package models
import (
"time"
"git.apinb.com/bsm-sdk/core/database"
)
// UserMessageRead 仅保存已读状态,消息正文仍来自订单、工单或公告事实表。
type UserMessageRead struct {
Entity // 公共实体字段
UserAccountID uint64 `gorm:"column:user_account_id;not null;index;uniqueIndex:ux_user_message_read;comment:读取消息的用户账号内部主键" json:"user_account_id"` // 用户账号内部主键
MessageKey string `gorm:"column:message_key;type:varchar(96);not null;uniqueIndex:ux_user_message_read;comment:消息来源类型与业务唯一标识组成的稳定键" json:"message_key"` // 稳定消息键
ReadAt time.Time `gorm:"column:read_at;type:timestamptz;not null;comment:用户首次确认已读的时间" json:"read_at"` // 首次已读时间
}
func init() { database.AppendMigrate(&UserMessageRead{}) }
func (table *UserMessageRead) TableName() string { return "user_message_read" }