Files
quyun-v2/backend/app/http/v1/dto/tenant.go

27 lines
636 B
Go

package dto
import "quyun/v2/app/requests"
type TenantListFilter struct {
requests.Pagination
Keyword *string `query:"keyword"`
}
type TenantProfile struct {
ID string `json:"id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Cover string `json:"cover"`
Bio string `json:"bio"`
Description string `json:"description"`
CertType string `json:"cert_type"` // personal, enterprise
Stats Stats `json:"stats"`
IsFollowing bool `json:"is_following"`
}
type Stats struct {
Followers int `json:"followers"`
Contents int `json:"contents"`
Likes int `json:"likes"`
}