2022-09-15 07:09:54 +00:00
|
|
|
package model
|
|
|
|
|
2022-09-21 03:19:17 +00:00
|
|
|
import "time"
|
|
|
|
|
2022-09-15 07:09:54 +00:00
|
|
|
// ResponseSellerInfo ...
|
|
|
|
type ResponseSellerInfo struct {
|
2023-02-28 11:04:14 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
IsAccountPro bool `json:"isAccountPro"`
|
|
|
|
CashRemaining float64 `json:"cashRemaining"`
|
2022-09-15 07:09:54 +00:00
|
|
|
}
|
2022-09-19 04:48:30 +00:00
|
|
|
|
|
|
|
// ResponseListSellerInfo ...
|
|
|
|
type ResponseListSellerInfo struct {
|
|
|
|
Sellers []ResponseSellerInfo `json:"sellers"`
|
|
|
|
}
|
2022-09-21 03:19:17 +00:00
|
|
|
|
|
|
|
// ResponseListSellerInfoSupportChat ...
|
|
|
|
type ResponseListSellerInfoSupportChat struct {
|
|
|
|
Sellers []ResponseSellerInfoSupportChat `json:"sellers"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ResponseSellerInfoSupportChat ...
|
|
|
|
type ResponseSellerInfoSupportChat struct {
|
2022-10-10 02:06:20 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Membership SellerMembershipInfo `json:"membership"`
|
|
|
|
Info SellerContactInfo `json:"info"`
|
|
|
|
Team *TeamInfo `json:"team,omitempty"`
|
|
|
|
Statistic SellerStatistic `json:"statistic"`
|
|
|
|
TrackingTime *SellerTrackingTime `json:"trackingTime"`
|
|
|
|
Invitee *InviteeInfo `json:"invitee"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
PlanPackage *SellerPlanPackageInfo `json:"planPackage"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SellerPlanPackageInfo ...
|
|
|
|
type SellerPlanPackageInfo struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Level int `json:"level"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
2022-09-21 03:19:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SellerTrackingTime ...
|
|
|
|
type SellerTrackingTime struct {
|
|
|
|
FirstOrderDeliveredAt time.Time `json:"firstOrderDeliveredAt,omitempty"`
|
|
|
|
ThirdOrderDeliveredAt time.Time `json:"thirdOrderDeliveredAt,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SellerStatistic ...
|
|
|
|
type SellerStatistic struct {
|
|
|
|
ThisMonthSale float64 `bson:"thisMonthSale" json:"thisMonthSale"`
|
|
|
|
LastMonthSale float64 `bson:"lastMonthSale" json:"lastMonthSale"`
|
|
|
|
Sale float64 `bson:"sale" json:"sale"`
|
|
|
|
TransactionTotal int `json:"transactionTotal"`
|
|
|
|
TransactionPaymentProcessing int `json:"transactionPaymentProcessing"`
|
|
|
|
TransactionWaitingApprove int `json:"transactionWaitingApprove"`
|
|
|
|
TransactionPending int `json:"transactionPending"`
|
|
|
|
TransactionSuccess int `json:"transactionSuccess"`
|
|
|
|
TransactionRejected int `json:"transactionRejected"`
|
|
|
|
TransactionDelivering int `json:"transactionDelivering"`
|
|
|
|
TransactionDelivered int `json:"transactionDelivered"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// TeamInfo ...
|
|
|
|
type TeamInfo struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Role string `json:"role"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// InviteeInfo ...
|
|
|
|
type InviteeInfo struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SellerContactInfo ...
|
|
|
|
type SellerContactInfo struct {
|
|
|
|
City int `json:"cityCode"`
|
|
|
|
CityName string `json:"cityName"`
|
|
|
|
Gender string `json:"gender"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SellerMembershipInfo ...
|
|
|
|
type SellerMembershipInfo struct {
|
|
|
|
Level int `json:"level"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|