feat: implement new structure
This commit is contained in:
19
backend/app/http/v1/dto/tenant.go
Normal file
19
backend/app/http/v1/dto/tenant.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package dto
|
||||
|
||||
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:"certType"` // personal, enterprise
|
||||
Stats Stats `json:"stats"`
|
||||
IsFollowing bool `json:"isFollowing"`
|
||||
}
|
||||
|
||||
type Stats struct {
|
||||
Followers int `json:"followers"`
|
||||
Contents int `json:"contents"`
|
||||
Likes int `json:"likes"`
|
||||
}
|
||||
Reference in New Issue
Block a user