Skip to content

Commit

Permalink
Merge branch 'feat/coupon' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sjatsh committed Nov 6, 2023
2 parents 4cf72d7 + 294bcb1 commit 7fcb771
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http_server/handle/coupon_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type ReqCouponInfo struct {
type RespCouponInfo struct {
Code string `json:"code"`
Price string `json:"price"`
BeginAt int64 `json:"begin_at"`
ExpiredAt int64 `json:"expired_at"`
Status tables.CouponStatus `json:"status"`
}
Expand Down Expand Up @@ -65,8 +66,9 @@ func (h *HttpHandle) doCouponInfo(req *ReqCouponInfo, apiResp *api_code.ApiResp)
}

resp := &RespCouponInfo{
Code: couponInfo.Code,
Code: req.Code,
Price: setInfo.Price.String(),
BeginAt: setInfo.BeginAt,
ExpiredAt: setInfo.ExpiredAt,
Status: couponInfo.Status,
}
Expand Down

0 comments on commit 7fcb771

Please sign in to comment.