diff --git a/client/social_post.go b/client/social_post.go index e6d9395..9e614c0 100644 --- a/client/social_post.go +++ b/client/social_post.go @@ -41,8 +41,8 @@ func (s SocialPost) GetListSocialPostAppInfoByIDs(p model.GetListSocialPostAppBy } // GetBriefDetailSocialPostAdminByIDsRequest ... -func (s SocialPost) GetBriefDetailSocialPostAdminByIDsRequest(p model.GetBriefDetailSocialPostAdminByIDsRequest) (*model.ResponseDetailSocialPostAdminInfo, error) { - msg, err := natsio.GetServer().Request(subject.SocialPost.GetBriefDetailSocialPostAdminByIDs, toBytes(p)) +func (s SocialPost) GetBriefDetailSocialPostAdminByIDsRequest(p model.GetBriefInfoSocialPostAdminByIDsRequest) (*model.ResponseDetailSocialPostAdminInfo, error) { + msg, err := natsio.GetServer().Request(subject.SocialPost.GetBriefInfoSocialPostAdminByIDs, toBytes(p)) if err != nil { return nil, err diff --git a/model/social_post_request.go b/model/social_post_request.go index 72cd803..efeb983 100644 --- a/model/social_post_request.go +++ b/model/social_post_request.go @@ -7,7 +7,7 @@ type GetListSocialPostAppByIDsRequest struct { SocialPostIDs []primitive.ObjectID `json:"socialPostIDs"` } -// GetBriefDetailSocialPostAdminByIDsRequest ... -type GetBriefDetailSocialPostAdminByIDsRequest struct { +// GetBriefInfoSocialPostAdminByIDsRequest ... +type GetBriefInfoSocialPostAdminByIDsRequest struct { SocialPostIDs []primitive.ObjectID `json:"socialPostIDs"` } diff --git a/subject/social_post.go b/subject/social_post.go index a90106a..029f876 100644 --- a/subject/social_post.go +++ b/subject/social_post.go @@ -9,9 +9,9 @@ func getSocialPostValue(val string) string { // SocialPost ... var SocialPost = struct { - GetListSocialPostAppInfoByIDs string - GetBriefDetailSocialPostAdminByIDs string + GetListSocialPostAppInfoByIDs string + GetBriefInfoSocialPostAdminByIDs string }{ - GetListSocialPostAppInfoByIDs: getSocialPostValue("get_list_social_post_app_info_by_ids"), - GetBriefDetailSocialPostAdminByIDs: getSocialPostValue("get_brief_detail_social_post_admin_by_ids"), + GetListSocialPostAppInfoByIDs: getSocialPostValue("get_list_social_post_app_info_by_ids"), + GetBriefInfoSocialPostAdminByIDs: getSocialPostValue("get_brief_info_social_post_admin_by_ids"), }