28 lines
668 B
Go
28 lines
668 B
Go
package dto
|
|
|
|
import "quyun/v2/app/requests"
|
|
|
|
type TenantListFilter struct {
|
|
requests.Pagination
|
|
Keyword *string `query:"keyword"`
|
|
Sort *string `query:"sort"`
|
|
}
|
|
|
|
type TenantProfile struct {
|
|
ID int64 `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"`
|
|
}
|