From 42874f493736868645f4b47b8dfcb0a1b1854ccc Mon Sep 17 00:00:00 2001 From: Nguyen Minh Date: Mon, 10 Oct 2022 09:06:20 +0700 Subject: [PATCH 1/2] seller-add-field-planPackage --- model/seller_response.go | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/model/seller_response.go b/model/seller_response.go index aec57b9..01c80e5 100644 --- a/model/seller_response.go +++ b/model/seller_response.go @@ -21,16 +21,25 @@ type ResponseListSellerInfoSupportChat struct { // ResponseSellerInfoSupportChat ... type ResponseSellerInfoSupportChat struct { - 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"` + 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"` } // SellerTrackingTime ... From b35a018d0aad602fb574cea11cf65ab06726debd Mon Sep 17 00:00:00 2001 From: Nguyen Minh Date: Mon, 24 Oct 2022 10:07:14 +0700 Subject: [PATCH 2/2] rerun --- client/seller.go | 1 - 1 file changed, 1 deletion(-) diff --git a/client/seller.go b/client/seller.go index 1d06208..8a45867 100644 --- a/client/seller.go +++ b/client/seller.go @@ -79,7 +79,6 @@ func (s Seller) GetListSellerInfoSupportChatByIDs(p model.GetListSellerSupportCh if err := json.Unmarshal(msg.Data, &r); err != nil { return nil, err } - if r.Error != "" { return nil, errors.New(r.Error)