| | |
| | | // @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, ¶ms) |
| | |
| | | return |
| | | } |
| | | |
| | | invoice, total, errCode := service.NewInvoiceService().GetInvoiceList() |
| | | invoice, total, errCode := service.NewInvoiceService().GetInvoiceList(params) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |