| | |
| | | package service
|
| | |
|
| | | import (
|
| | | "aps_crm/constvar" |
| | | "aps_crm/model"
|
| | | "aps_crm/pkg/ecode"
|
| | | "aps_crm/pkg/mysqlx"
|
| | |
| | | return ecode.OK
|
| | | }
|
| | |
|
| | | func (FeeManageService) GetServiceFeeManageList(page, pageSize int, keyword string) ([]*model.ServiceFeeManage, int64, int) {
|
| | | // get contact list
|
| | | contacts, total, err := model.NewServiceFeeManageSearch(nil).SetKeyword(keyword).SetPage(page, pageSize).FindAll()
|
| | | if err != nil {
|
| | | return nil, 0, ecode.ServiceFeeManageListErr
|
| | | }
|
| | | return contacts, total, ecode.OK
|
| | | }
|
| | |
|
| | | func (FeeManageService) DeleteServiceFeeManage(ids []int) int {
|
| | | // delete client
|
| | | err := model.NewServiceFeeManageSearch(nil).SetIds(ids).Delete()
|
| | |
| | | }
|
| | | return ecode.OK
|
| | | }
|
| | | |
| | | func (FeeManageService) GetServiceFeeManageList(page, pageSize int, queryClass constvar.ServiceFeeQueryClass, keywordType constvar.ServiceFeeKeywordType, keyword string) ([]*model.ServiceFeeManage, int64, int) { |
| | | // get contact list |
| | | contacts, total, err := model.NewServiceFeeManageSearch(nil). |
| | | SetQueryClass(queryClass). |
| | | SetKeywordType(keywordType). |
| | | SetKeyword(keyword). |
| | | SetPage(page, pageSize).FindAll() |
| | | if err != nil { |
| | | return nil, 0, ecode.ServiceFeeManageListErr |
| | | } |
| | | return contacts, total, ecode.OK |
| | | } |