feat: add superadmin member review and coupon ops
This commit is contained in:
@@ -454,6 +454,59 @@ type TenantUser struct {
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
// SuperTenantJoinRequestListFilter 超管成员申请列表过滤条件。
|
||||
type SuperTenantJoinRequestListFilter struct {
|
||||
requests.Pagination
|
||||
// TenantID 租户ID,精确匹配。
|
||||
TenantID *int64 `query:"tenant_id"`
|
||||
// TenantCode 租户编码,模糊匹配。
|
||||
TenantCode *string `query:"tenant_code"`
|
||||
// TenantName 租户名称,模糊匹配。
|
||||
TenantName *string `query:"tenant_name"`
|
||||
// UserID 申请用户ID,精确匹配。
|
||||
UserID *int64 `query:"user_id"`
|
||||
// Username 申请用户用户名/昵称,模糊匹配。
|
||||
Username *string `query:"username"`
|
||||
// Status 申请状态(pending/approved/rejected)。
|
||||
Status *consts.TenantJoinRequestStatus `query:"status"`
|
||||
// CreatedAtFrom 申请时间起始(RFC3339)。
|
||||
CreatedAtFrom *string `query:"created_at_from"`
|
||||
// CreatedAtTo 申请时间结束(RFC3339)。
|
||||
CreatedAtTo *string `query:"created_at_to"`
|
||||
}
|
||||
|
||||
// SuperTenantJoinRequestItem 超管成员申请列表项。
|
||||
type SuperTenantJoinRequestItem struct {
|
||||
// ID 申请记录ID。
|
||||
ID int64 `json:"id"`
|
||||
// TenantID 租户ID。
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
// TenantCode 租户编码。
|
||||
TenantCode string `json:"tenant_code"`
|
||||
// TenantName 租户名称。
|
||||
TenantName string `json:"tenant_name"`
|
||||
// UserID 申请用户ID。
|
||||
UserID int64 `json:"user_id"`
|
||||
// Username 申请用户名称。
|
||||
Username string `json:"username"`
|
||||
// Status 申请状态。
|
||||
Status string `json:"status"`
|
||||
// StatusDescription 状态描述(用于展示)。
|
||||
StatusDescription string `json:"status_description"`
|
||||
// Reason 申请说明。
|
||||
Reason string `json:"reason"`
|
||||
// DecidedAt 审核时间(RFC3339)。
|
||||
DecidedAt string `json:"decided_at"`
|
||||
// DecidedOperatorUserID 审核操作者ID。
|
||||
DecidedOperatorUserID int64 `json:"decided_operator_user_id"`
|
||||
// DecidedReason 审核备注/原因。
|
||||
DecidedReason string `json:"decided_reason"`
|
||||
// CreatedAt 申请时间(RFC3339)。
|
||||
CreatedAt string `json:"created_at"`
|
||||
// UpdatedAt 更新时间(RFC3339)。
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
// Order Related
|
||||
type SuperOrderItem struct {
|
||||
// ID 订单ID。
|
||||
|
||||
@@ -73,3 +73,9 @@ type SuperCouponItem struct {
|
||||
// UpdatedAt 更新时间(RFC3339)。
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
// SuperCouponGrantResponse 超管优惠券发放结果。
|
||||
type SuperCouponGrantResponse struct {
|
||||
// Granted 实际发放数量。
|
||||
Granted int `json:"granted"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user