Versions in this module Expand all Collapse all v1 v1.1.0 Jan 29, 2023 Changes in this version + type PostDBTX interface + CreateComment func(ctx context.Context, param *request.CreateCommentParams) *util.MultiError + CreateLike func(ctx context.Context, postID uuid.UUID, accountID int64) (result.LikeTXResult, error) + CreatePostGCPTx func(ctx context.Context, arg *request.CreatePostParams) (result.PostTXResult, error) + CreateQouteRetweet func(ctx context.Context, arg *request.CreateQouteRetweetParams) (*uuid.UUID, error) + CreateRetweetTX func(ctx context.Context, arg *request.CreateRetweetParams) (result.RetweetTXResult, error) + DeleteQouteRetweetTX func(ctx context.Context, AccountID int64, PostID uuid.UUID) error + DeleteRetweetTX func(ctx context.Context, PostID uuid.UUID, AccountID int64) error + PurgePost func(ctx context.Context, PostID uuid.UUID) error + UnlikeTX func(ctx context.Context, postID uuid.UUID, accountID int64) (result.LikeTXResult, error) + type PostTx struct + func NewPostTx(db *db.SQLStore, projectDB *sql.DB) *PostTx + func (p *PostTx) CreateComment(ctx context.Context, param *request.CreateCommentParams) *util.MultiError + func (p *PostTx) CreateLike(ctx context.Context, postID uuid.UUID, accountID int64) (result.LikeTXResult, error) + func (p *PostTx) CreatePostGCPTx(ctx context.Context, arg *request.CreatePostParams) (PostTXResult, error) + func (p *PostTx) CreateQouteRetweet(ctx context.Context, arg *request.CreateQouteRetweetParams) (*uuid.UUID, error) + func (p *PostTx) CreateRetweetTX(ctx context.Context, arg *request.CreateRetweetParams) (result.RetweetTXResult, error) + func (p *PostTx) DeletePostTX(ctx context.Context, PostID uuid.UUID) error + func (p *PostTx) DeleteQouteRetweetTX(ctx context.Context, AccountID int64, PostID uuid.UUID) error + func (p *PostTx) DeleteRetweetTX(ctx context.Context, PostID uuid.UUID, AccountID int64) error + func (p *PostTx) PurgePost(ctx context.Context, PostID uuid.UUID) error + func (p *PostTx) UnlikeTX(ctx context.Context, postID uuid.UUID, accountID int64) (result.LikeTXResult, error)