From 396941180030802dc046f3250492b44bb8a7ea81 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 14 八月 2023 13:39:33 +0800 Subject: [PATCH] fix --- service/contract.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/contract.go b/service/contract.go index 42e4c81..b966dce 100644 --- a/service/contract.go +++ b/service/contract.go @@ -44,9 +44,9 @@ return ecode.OK } -func (ContractService) GetContractList(page, pageSize int, keyword string) ([]*model.Contract, int64, int) { +func (ContractService) GetContractList(page, pageSize int, data map[string]interface{}) ([]*model.Contract, int64, int) { // get contact list - contacts, total, err := model.NewContractSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll() + contacts, total, err := model.NewContractSearch().SetPage(page, pageSize).SetSearchMap(data).FindAll() if err != nil { return nil, 0, ecode.ContractListErr } -- Gitblit v1.8.0