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
@@ -8,7 +8,8 @@ import (
type UserPaymentAccount struct {
ID uint64 `gorm:"primaryKey" json:"id"`
UserID uint64 `gorm:"not null;index" json:"user_id"`
TenantID uint64 `gorm:"not null;default:0;index:idx_user_payment_accounts_tenant_user" json:"tenant_id"`
UserID uint64 `gorm:"not null;index:idx_user_payment_accounts_tenant_user" json:"user_id"`
AccountType string `gorm:"size:32;not null" json:"account_type"`
AccountName string `gorm:"size:128;not null" json:"account_name"`
AccountNo string `gorm:"size:255;not null" json:"account_no"`