From f5e2c16e70ef2fa62ba2daa1addefe7720dadf13 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 17 八月 2023 20:06:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- model/invoiceType.go | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/model/invoiceType.go b/model/invoiceType.go index 55eced6..14e1d3a 100644 --- a/model/invoiceType.go +++ b/model/invoiceType.go @@ -12,18 +12,18 @@ // InvoiceType 鍙戠エ绫诲瀷 InvoiceType struct { Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` - Name string `json:"name" gorm:"column:name"` + Name string `json:"name" gorm:"column:name"` } // InvoiceTypeSearch 鍙戠エ绫诲瀷鎼滅储鏉′欢 InvoiceTypeSearch struct { InvoiceType - Orm *gorm.DB - QueryClass constvar.InvoiceTypeQueryClass - KeywordType constvar.InvoiceTypeKeywordType - Keyword string - PageNum int - PageSize int + Orm *gorm.DB + QueryClass constvar.InvoiceTypeQueryClass + KeywordType constvar.InvoiceTypeKeywordType + Keyword string + PageNum int + PageSize int } ) @@ -135,6 +135,10 @@ if total != 0 { return nil } - records := []*InvoiceType{} + records := []*InvoiceType{ + {1, "澧炵エ6%"}, + {2, "澧炵エ16%"}, + {3, "澧炵エ17%"}, + } return slf.CreateBatch(records) } -- Gitblit v1.8.0