liujiandao
2023-10-12 17aaed743ab7a3520ec8eb9e4ab7c776ca807cdd
api/v1/invoice.go
@@ -104,9 +104,9 @@
// @Tags      销售发票
// @Summary   获取销售发票列表
// @Produce   application/json
// @Param      object   query      request.GetInvoiceList   true   "参数"
// @Param      object   body      request.GetInvoiceList   true   "参数"
// @Success   200   {object}   response.ListResponse{data=[]model.Invoice}
// @Router      /api/invoice/list [get]
// @Router      /api/invoice/list [post]
func (s *InvoiceApi) List(c *gin.Context) {
   var params request.GetInvoiceList
   ctx, ok := contextx.NewContext(c, &params)
@@ -114,7 +114,7 @@
      return
   }
   invoice, total, errCode := service.NewInvoiceService().GetInvoiceList()
   invoice, total, errCode := service.NewInvoiceService().GetInvoiceList(params)
   if errCode != ecode.OK {
      ctx.Fail(errCode)
      return