Merge pull request 'rename' (#61) from feature/get-detail-social-post into feature/campaign
Reviewed-on: #61
This commit is contained in:
commit
828d4e34ba
|
@ -41,7 +41,7 @@ func (s SocialPost) GetListSocialPostAppInfoByIDs(p model.GetListSocialPostAppBy
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBriefDetailSocialPostAdminByIDsRequest ...
|
// GetBriefDetailSocialPostAdminByIDsRequest ...
|
||||||
func (s SocialPost) GetBriefDetailSocialPostAdminByIDsRequest(p model.GetBriefInfoSocialPostAdminByIDsRequest) (*model.ResponseDetailSocialPostAdminInfo, error) {
|
func (s SocialPost) GetBriefDetailSocialPostAdminByIDsRequest(p model.GetBriefInfoSocialPostAdminByIDsRequest) (*model.ResponseListSocialPostAdminInfo, error) {
|
||||||
msg, err := natsio.GetServer().Request(subject.SocialPost.GetBriefInfoSocialPostAdminByIDs, toBytes(p))
|
msg, err := natsio.GetServer().Request(subject.SocialPost.GetBriefInfoSocialPostAdminByIDs, toBytes(p))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -49,7 +49,7 @@ func (s SocialPost) GetBriefDetailSocialPostAdminByIDsRequest(p model.GetBriefIn
|
||||||
}
|
}
|
||||||
|
|
||||||
var r struct {
|
var r struct {
|
||||||
Data *model.ResponseDetailSocialPostAdminInfo `json:"data"`
|
Data *model.ResponseListSocialPostAdminInfo `json:"data"`
|
||||||
Error string `json:"error"`
|
Error string `json:"error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ type ResponseListSocialPostAdminInfo struct {
|
||||||
SocialPosts []SocialPostAdminInfo `json:"socialPosts"`
|
SocialPosts []SocialPostAdminInfo `json:"socialPosts"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SocialPostAdminInfo ...
|
||||||
type SocialPostAdminInfo struct {
|
type SocialPostAdminInfo struct {
|
||||||
ID primitive.ObjectID `json:"_id"`
|
ID primitive.ObjectID `json:"_id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
|
|
Loading…
Reference in New Issue