2025-09-15 14:04:35 +00:00
|
|
|
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"`
|
|
|
|
|
}
|
2025-09-16 08:02:38 +00:00
|
|
|
|
|
|
|
|
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"`
|
|
|
|
|
}
|
2025-09-16 08:39:26 +00:00
|
|
|
|
|
|
|
|
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"`
|
|
|
|
|
}
|