common/model/yclients.go

70 lines
2.2 KiB
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"`
}
type YclientsCompany struct {
ID int64 `json:"id"`
YclientsID int32 `json:"yclientsID"`
YclientsCompanyID int32 `json:"yclientsCompanyID"`
Title string `json:"title"`
ShortDecription string `json:"shortDecription"`
Active int32 `json:"active"`
Country string `json:"country"`
GroupPriority int32 `json:"groupPriority"`
Deleted bool `json:"deleted"`
CreatedAt time.Time `json:"createdAt"`
}
type CompanyListYclientsResp struct {
Count int64 `json:"count"`
Items []YclientsCompany `json:"items"`
}
type YclientsServices struct {
ID int64 `json:"id"`
YclientsID int32 `json:"yclientsID"`
ServiceID int32 `json:"serviceID"`
Title string `json:"title"`
CategoryID int32 `json:"categoryID"`
PriceMin string `json:"priceMin"`
PriceMax string `json:"priceMax"`
Discount string `json:"discount"`
Comment string `json:"comment"`
Active string `json:"active"`
ApiID string `json:"apiID"`
Deleted bool `json:"deleted"`
CreatedAt time.Time `json:"createdAt"`
}
type ServicesListYclientsResp struct {
Count int64 `json:"count"`
Items []YclientsServices `json:"items"`
}