Compare commits
No commits in common. "master" and "v0.0.6" have entirely different histories.
|
@ -25,8 +25,6 @@ type MockCommentRepository struct {
|
||||||
isgomock struct{}
|
isgomock struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// MockCommentRepositoryMockRecorder is the mock recorder for MockCommentRepository.
|
// MockCommentRepositoryMockRecorder is the mock recorder for MockCommentRepository.
|
||||||
type MockCommentRepositoryMockRecorder struct {
|
type MockCommentRepositoryMockRecorder struct {
|
||||||
mock *MockCommentRepository
|
mock *MockCommentRepository
|
||||||
|
|
|
@ -97,10 +97,7 @@ func (use *CommentUseCase) GetCommentItem(ctx context.Context, id string) (*usec
|
||||||
}
|
}
|
||||||
|
|
||||||
func (use *CommentUseCase) UpdateCommentMessage(ctx context.Context, id string, message string, isVisitable bool) error {
|
func (use *CommentUseCase) UpdateCommentMessage(ctx context.Context, id string, message string, isVisitable bool) error {
|
||||||
snappyContent := snappy.Encode(nil, []byte(message))
|
err := use.Comment.UpdateCommentMessage(ctx, id, message, isVisitable)
|
||||||
msg := base64.StdEncoding.EncodeToString(snappyContent)
|
|
||||||
|
|
||||||
err := use.Comment.UpdateCommentMessage(ctx, id, msg, isVisitable)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errs.DatabaseErrorWithScopeL(
|
return errs.DatabaseErrorWithScopeL(
|
||||||
code.CloudEPComment,
|
code.CloudEPComment,
|
||||||
|
|
Loading…
Reference in New Issue