添加微信支付支持,重构资源创建逻辑,更新支付宝相关配置,移除账单状态字段
This commit is contained in:
@@ -16,7 +16,6 @@ type ListBillReq struct {
|
||||
common.PageReq
|
||||
BillNo *string `json:"bill_no"`
|
||||
Type *int `json:"type"`
|
||||
Status *int `json:"status"`
|
||||
CreateAfter *time.Time `json:"create_after"`
|
||||
CreateBefore *time.Time `json:"create_before"`
|
||||
}
|
||||
@@ -39,9 +38,6 @@ func ListBill(c *fiber.Ctx) error {
|
||||
do := q.Bill.
|
||||
Where(q.Bill.UserID.Eq(authContext.Payload.Id))
|
||||
|
||||
if req.Status != nil {
|
||||
do = do.Where(q.Bill.Status.Eq(int32(*req.Status)))
|
||||
}
|
||||
if req.Type != nil {
|
||||
do = do.Where(q.Bill.Type.Eq(int32(*req.Type)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user