common/model/yclients.go

31 lines
938 B
Go
Raw Normal View History

package model
import "time"
type YclientsAccount struct {
ID int64 `json:"id"` // ID компании
AccountID string `json:"accountID"` // ID аккаунта нас
YclientsID int32 `json:"yclientsID"`
Name string `json:"name"`
Country string `json:"country"`
Deleted bool `json:"deleted"`
CreatedAt time.Time `json:"createdAt"`
Subdomain string `json:"subdomain"`
Stale bool `json:"stale"`
}
type YclientsAccountUser struct {
ID int64 `json:"id"`
YclientsID int32 `json:"yclientsID"`
YclientsUserID int32 `json:"yclientsUserID"`
Name string `json:"name"`
Role int32 `json:"role"`
Deleted bool `json:"deleted"`
CreatedAt time.Time `json:"createdAt"`
}
type UserListYclientsResp struct {
Count int64 `json:"count"`
Items []YclientsAccountUser `json:"items"`
}