添加微信支付支持,重构资源创建逻辑,更新支付宝相关配置,移除账单状态字段

This commit is contained in:
2025-04-17 18:29:44 +08:00
parent 2146887f95
commit f6a97545c5
20 changed files with 607 additions and 495 deletions

View File

@@ -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)))
}