Merge pull request 'by Robin at 20240120; fix' (#63) from feat-20230112-001-Robin into test
Reviewed-on: #63
This commit is contained in:
commit
6d51dcf696
|
@ -35,6 +35,7 @@ func (p *Moment) OpCreate(ctx *gin.Context, req *momentproto.OpCreateReq) error
|
||||||
req.Moment.Id = goproto.Int64(momentSeqId.Seq)
|
req.Moment.Id = goproto.Int64(momentSeqId.Seq)
|
||||||
req.Moment.Ct = goproto.Int64(time.Now().Unix())
|
req.Moment.Ct = goproto.Int64(time.Now().Unix())
|
||||||
req.Moment.Ut = goproto.Int64(time.Now().Unix())
|
req.Moment.Ut = goproto.Int64(time.Now().Unix())
|
||||||
|
req.Moment.ThumbsUpNum = goproto.Int64(0)
|
||||||
req.Moment.DelFlag = goproto.Int64(consts.Exist)
|
req.Moment.DelFlag = goproto.Int64(consts.Exist)
|
||||||
err = p.store.CreateMoment(ctx, req.Moment)
|
err = p.store.CreateMoment(ctx, req.Moment)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue