feat(tenant): 按租户隔离用户身份与后台权限

This commit is contained in:
yml
2026-11-15 15:37:23 +08:00
parent ca57f604bf
commit abf0fce89b
43 changed files with 1572 additions and 196 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ import "time"
type WithdrawalRequest struct {
ID uint64 `gorm:"primaryKey" json:"id"`
WithdrawNo string `gorm:"size:64;not null;uniqueIndex" json:"withdraw_no"`
UserID uint64 `gorm:"not null;index:idx_withdrawal_user_site" json:"user_id"`
TenantID uint64 `gorm:"not null;default:0;index:idx_withdrawal_tenant_user_created" json:"tenant_id"`
UserID uint64 `gorm:"not null;index:idx_withdrawal_user_site;index:idx_withdrawal_tenant_user_created" json:"user_id"`
DistributionSiteID uint64 `gorm:"not null;default:0;index:idx_withdrawal_user_site" json:"distribution_site_id"`
AmountCent int64 `gorm:"not null;default:0" json:"-"`
FeeCent int64 `gorm:"not null;default:0" json:"-"`