|
|
package domain
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/interanl/pkg/db/transaction"
|
|
|
)
|
|
|
|
|
|
// 人员查看文章详情后,标记一个记录
|
|
|
// 浏览记录
|
|
|
|
...
|
...
|
@@ -14,3 +20,12 @@ type UserReadArticle struct { |
|
|
DeletedAt int64 `json:"deletedAt,omitempty"`
|
|
|
Version int `json:"version,omitempty"`
|
|
|
}
|
|
|
|
|
|
type UserReadArticleRepository interface {
|
|
|
Insert(ctx context.Context, conn transaction.Conn, dm *UserReadArticle) (*UserReadArticle, error)
|
|
|
Update(ctx context.Context, conn transaction.Conn, dm *UserReadArticle) (*UserReadArticle, error)
|
|
|
UpdateWithVersion(ctx context.Context, conn transaction.Conn, dm *UserReadArticle) (*UserReadArticle, error)
|
|
|
Delete(ctx context.Context, conn transaction.Conn, dm *UserReadArticle) (*UserReadArticle, error)
|
|
|
FindOne(ctx context.Context, conn transaction.Conn, id int64) (*UserReadArticle, error)
|
|
|
Find(ctx context.Context, conn transaction.Conn, queryOptions map[string]interface{}) (int64, []*UserReadArticle, error)
|
|
|
} |
...
|
...
|
|