Merge pull request #30 from Selly-Modules/feature/seller-by-id

support chat get seller info
This commit is contained in:
Minh Nguyen 2022-09-22 13:49:48 +07:00 committed by GitHub
commit 08a9fdabe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

View File

@ -66,7 +66,7 @@ func (s Seller) GetListSellerInfoByIDs(p model.GetListSellerByIDsRequest) (*mode
// GetListSellerInfoSupportChatByIDs ... // GetListSellerInfoSupportChatByIDs ...
func (s Seller) GetListSellerInfoSupportChatByIDs(p model.GetListSellerSupportChatByIDsRequest) (*model.ResponseListSellerInfoSupportChat, error) { func (s Seller) GetListSellerInfoSupportChatByIDs(p model.GetListSellerSupportChatByIDsRequest) (*model.ResponseListSellerInfoSupportChat, error) {
msg, err := natsio.GetServer().Request(subject.Seller.GetListSellerInfoSupportChatByIDs, toBytes(p)) msg, err := natsio.GetServer().Request(subject.SupportChat.GetListSellerInfoSupportChatByIDs, toBytes(p))
if err != nil { if err != nil {
return nil, err return nil, err
} }

View File

@ -8,11 +8,16 @@ func getSellerValue(val string) string {
// Seller ... // Seller ...
var Seller = struct { var Seller = struct {
GetSellerInfoByID string GetSellerInfoByID string
GetListSellerInfoByIDs string GetListSellerInfoByIDs string
}{
GetSellerInfoByID: getSellerValue("get_seller_info_by_id"),
GetListSellerInfoByIDs: getSellerValue("get_list_seller_info_by_ids"),
}
// SupportChat ...
var SupportChat = struct {
GetListSellerInfoSupportChatByIDs string GetListSellerInfoSupportChatByIDs string
}{ }{
GetSellerInfoByID: getSellerValue("get_seller_info_by_id"), GetListSellerInfoSupportChatByIDs: "SELLY_CHAT.REQUEST.SELLER_INFO",
GetListSellerInfoByIDs: getSellerValue("get_list_seller_info_by_ids"),
GetListSellerInfoSupportChatByIDs: getSellerValue("get_list_seller_info_support_chat_by_ids"),
} }