正在显示
4 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -251,6 +251,7 @@ func (l *MiniSetUserLikeLogic) setUserLikeArticle(req *types.MiniSetUserLikeRequ | @@ -251,6 +251,7 @@ func (l *MiniSetUserLikeLogic) setUserLikeArticle(req *types.MiniSetUserLikeRequ | ||
| 251 | CommentAuthor: 0, | 251 | CommentAuthor: 0, |
| 252 | UserId: req.UserId, | 252 | UserId: req.UserId, |
| 253 | ToUserId: articleInfo.AuthorId, | 253 | ToUserId: articleInfo.AuthorId, |
| 254 | + CompanyId: userInfo.CompanyId, | ||
| 254 | } | 255 | } |
| 255 | // 添加点赞标识 | 256 | // 添加点赞标识 |
| 256 | _, err = l.svcCtx.UserLoveFlagRepository.Insert(ctx, c, &flagInfo) | 257 | _, err = l.svcCtx.UserLoveFlagRepository.Insert(ctx, c, &flagInfo) |
| @@ -341,6 +342,7 @@ func (l *MiniSetUserLikeLogic) setUserLikeComment(req *types.MiniSetUserLikeRequ | @@ -341,6 +342,7 @@ func (l *MiniSetUserLikeLogic) setUserLikeComment(req *types.MiniSetUserLikeRequ | ||
| 341 | CommentAuthor: commentInfo.FromUserId, | 342 | CommentAuthor: commentInfo.FromUserId, |
| 342 | UserId: req.UserId, | 343 | UserId: req.UserId, |
| 343 | ToUserId: commentInfo.FromUserId, | 344 | ToUserId: commentInfo.FromUserId, |
| 345 | + CompanyId: userInfo.CompanyId, | ||
| 344 | } | 346 | } |
| 345 | // 设置赞标识 | 347 | // 设置赞标识 |
| 346 | _, err = l.svcCtx.UserLoveFlagRepository.Insert(ctx, c, &flagInfo) | 348 | _, err = l.svcCtx.UserLoveFlagRepository.Insert(ctx, c, &flagInfo) |
| @@ -17,6 +17,7 @@ type UserLoveFlag struct { | @@ -17,6 +17,7 @@ type UserLoveFlag struct { | ||
| 17 | CommentAuthor int64 // 评论的填写人 | 17 | CommentAuthor int64 // 评论的填写人 |
| 18 | UserId int64 | 18 | UserId int64 |
| 19 | ToUserId int64 | 19 | ToUserId int64 |
| 20 | + CompanyId int64 | ||
| 20 | CreatedAt int64 | 21 | CreatedAt int64 |
| 21 | UpdatedAt int64 | 22 | UpdatedAt int64 |
| 22 | DeletedAt int64 | 23 | DeletedAt int64 |
| @@ -164,6 +164,7 @@ func (repository *UserLoveFlagRepository) ModelToDomainModel(from *models.UserLo | @@ -164,6 +164,7 @@ func (repository *UserLoveFlagRepository) ModelToDomainModel(from *models.UserLo | ||
| 164 | CommentId: from.CommentId, | 164 | CommentId: from.CommentId, |
| 165 | UserId: from.UserId, | 165 | UserId: from.UserId, |
| 166 | ToUserId: from.ToUserId, | 166 | ToUserId: from.ToUserId, |
| 167 | + CompanyId: from.CompanyId, | ||
| 167 | CreatedAt: from.CreatedAt, | 168 | CreatedAt: from.CreatedAt, |
| 168 | UpdatedAt: from.UpdatedAt, | 169 | UpdatedAt: from.UpdatedAt, |
| 169 | DeletedAt: from.DeletedAt, | 170 | DeletedAt: from.DeletedAt, |
| @@ -182,6 +183,7 @@ func (repository *UserLoveFlagRepository) DomainModelToModel(from *domain.UserLo | @@ -182,6 +183,7 @@ func (repository *UserLoveFlagRepository) DomainModelToModel(from *domain.UserLo | ||
| 182 | CommentAuthor: from.CommentAuthor, | 183 | CommentAuthor: from.CommentAuthor, |
| 183 | UserId: from.UserId, | 184 | UserId: from.UserId, |
| 184 | ToUserId: from.ToUserId, | 185 | ToUserId: from.ToUserId, |
| 186 | + CompanyId: from.CompanyId, | ||
| 185 | CreatedAt: from.CreatedAt, | 187 | CreatedAt: from.CreatedAt, |
| 186 | UpdatedAt: from.UpdatedAt, | 188 | UpdatedAt: from.UpdatedAt, |
| 187 | DeletedAt: from.DeletedAt, | 189 | DeletedAt: from.DeletedAt, |
| @@ -16,6 +16,7 @@ type UserLoveFlag struct { | @@ -16,6 +16,7 @@ type UserLoveFlag struct { | ||
| 16 | CommentAuthor int64 `json:"commentAuthor"` // 评论的填写人 | 16 | CommentAuthor int64 `json:"commentAuthor"` // 评论的填写人 |
| 17 | ToUserId int64 `json:"toUserId"` // 点赞的接受人 | 17 | ToUserId int64 `json:"toUserId"` // 点赞的接受人 |
| 18 | UserId int64 `json:"userId"` // 点赞的人 | 18 | UserId int64 `json:"userId"` // 点赞的人 |
| 19 | + CompanyId int64 `json:"companyId"` // | ||
| 19 | CreatedAt int64 `json:"createdAt,omitempty"` | 20 | CreatedAt int64 `json:"createdAt,omitempty"` |
| 20 | UpdatedAt int64 `json:"updatedAt,omitempty"` | 21 | UpdatedAt int64 `json:"updatedAt,omitempty"` |
| 21 | DeletedAt int64 `json:"deletedAt,omitempty"` | 22 | DeletedAt int64 `json:"deletedAt,omitempty"` |
-
请 注册 或 登录 后发表评论