feat: 更新租户和订单相关功能,添加租户成员列表接口,优化数据处理和前端展示
This commit is contained in:
26
backend/app/http/super/dto/tenant_user.go
Normal file
26
backend/app/http/super/dto/tenant_user.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package dto
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"quyun/v2/database/models"
|
||||
"quyun/v2/pkg/consts"
|
||||
|
||||
"go.ipao.vip/gen/types"
|
||||
)
|
||||
|
||||
type SuperUserLite struct {
|
||||
ID int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Status consts.UserStatus `json:"status"`
|
||||
Roles types.Array[consts.Role] `json:"roles"`
|
||||
VerifiedAt time.Time `json:"verified_at"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
StatusDescription string `json:"status_description,omitempty"`
|
||||
}
|
||||
|
||||
type SuperTenantUserItem struct {
|
||||
TenantUser *models.TenantUser `json:"tenant_user,omitempty"`
|
||||
User *SuperUserLite `json:"user,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user