Files
quyun-v2/backend/app/http/v1/dto/tenant.go
2026-01-08 15:13:15 +08:00

43 lines
1.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dto
import "quyun/v2/app/requests"
type TenantListFilter struct {
// Pagination 分页参数page/limit
requests.Pagination
// Keyword 关键词搜索(租户名称)。
Keyword *string `query:"keyword"`
// Sort 排序规则。
Sort *string `query:"sort"`
}
type TenantProfile struct {
// ID 租户ID。
ID int64 `json:"id"`
// Name 租户名称。
Name string `json:"name"`
// Avatar 头像URL。
Avatar string `json:"avatar"`
// Cover 封面图URL。
Cover string `json:"cover"`
// Bio 简短简介。
Bio string `json:"bio"`
// Description 详细描述。
Description string `json:"description"`
// CertType 认证类型personal/enterprise
CertType string `json:"cert_type"`
// Stats 统计信息。
Stats Stats `json:"stats"`
// IsFollowing 当前用户是否关注。
IsFollowing bool `json:"is_following"`
}
type Stats struct {
// Followers 粉丝数。
Followers int `json:"followers"`
// Contents 内容数。
Contents int `json:"contents"`
// Likes 累计点赞数。
Likes int `json:"likes"`
}