@@ -64,7 +64,7 @@ func (s *postService) CreatePost(ctx context.Context, userId string, req dto.Pos
6464 User : dto.UserResponse {
6565 ID : user .ID .String (),
6666 Name : user .Name ,
67- Bio : user .Bio ,
67+ Bio : * user .Bio ,
6868 UserName : user .Username ,
6969 ImageUrl : user .ImageUrl ,
7070 },
@@ -91,7 +91,7 @@ func (s *postService) GetPostById(ctx context.Context, postId uint64) (dto.PostR
9191 User : dto.UserResponse {
9292 ID : reply .UserID .String (),
9393 Name : reply .User .Name ,
94- Bio : reply .User .Bio ,
94+ Bio : * reply .User .Bio ,
9595 UserName : reply .User .Username ,
9696 ImageUrl : reply .User .ImageUrl ,
9797 },
@@ -108,7 +108,7 @@ func (s *postService) GetPostById(ctx context.Context, postId uint64) (dto.PostR
108108 User : dto.UserResponse {
109109 ID : post .UserID .String (),
110110 Name : post .User .Name ,
111- Bio : post .User .Bio ,
111+ Bio : * post .User .Bio ,
112112 UserName : post .User .Username ,
113113 ImageUrl : post .User .ImageUrl ,
114114 },
@@ -160,7 +160,7 @@ func (s *postService) UpdatePostById(ctx context.Context, userId string, postId
160160 User : dto.UserResponse {
161161 ID : result .UserID .String (),
162162 Name : result .User .Name ,
163- Bio : result .User .Bio ,
163+ Bio : * result .User .Bio ,
164164 UserName : result .User .Username ,
165165 ImageUrl : result .User .ImageUrl ,
166166 },
@@ -182,7 +182,7 @@ func (s *postService) GetAllPosts(ctx context.Context, req dto.PaginationRequest
182182 User : dto.UserResponse {
183183 ID : post .UserID .String (),
184184 Name : post .User .Name ,
185- Bio : post .User .Bio ,
185+ Bio : * post .User .Bio ,
186186 UserName : post .User .Username ,
187187 ImageUrl : post .User .ImageUrl ,
188188 },
0 commit comments