更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -4,15 +4,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// SystemFile 附件表 yz_system_files
|
||||
//
|
||||
// 归属语义(2026-09-09 文件存储分层改造后明确):
|
||||
// - tid : 租户 ID
|
||||
// - uid : 上传者 ID
|
||||
// - tuid : 归属用户 ID(scope=user 时必填;scope=tenant 时为 NULL)
|
||||
// - source: 来源端 backend / platform
|
||||
// - scope : tenant-租户共享 / user-用户个人
|
||||
// - object_key: 存储相对路径,不含域名,如 backend/234573/67091493/2026/09/09/xxx.png
|
||||
type SystemFile struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Tid uint64 `orm:"column(tid)" json:"tid"`
|
||||
@@ -38,13 +29,11 @@ func (m *SystemFile) TableName() string {
|
||||
return "yz_system_files"
|
||||
}
|
||||
|
||||
// 归属与存储字段的取值常量
|
||||
const (
|
||||
FileSourceBackend = "backend" // 租户后台端
|
||||
FileSourcePlatform = "platform" // 平台端
|
||||
FileSourceBackend = "backend"
|
||||
FileSourcePlatform = "platform"
|
||||
|
||||
FileScopeTenant = "tenant" // 租户共享文件
|
||||
FileScopeUser = "user" // 用户个人文件
|
||||
FileScopeTenant = "tenant"
|
||||
FileScopeUser = "user"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user