|
@@ -14,7 +14,7 @@ func (cs *CustomerService) QueryAllCustomers() ([]crm.Customer, error) {
|
|
func (cs *CustomerService) QueryCustomerList(info request.SearchCustomer) (customers []crm.Customer, total int64, err error) {
|
|
func (cs *CustomerService) QueryCustomerList(info request.SearchCustomer) (customers []crm.Customer, total int64, err error) {
|
|
limit := info.PageInfo.PageSize
|
|
limit := info.PageInfo.PageSize
|
|
offset := info.PageInfo.PageSize * (info.PageInfo.Page - 1)
|
|
offset := info.PageInfo.PageSize * (info.PageInfo.Page - 1)
|
|
- return crm.QueryCustomerList(limit, offset, info.Name)
|
|
|
|
|
|
+ return crm.QueryCustomerList(limit, offset, info.Genre, info.Name)
|
|
}
|
|
}
|
|
|
|
|
|
func (cs *CustomerService) CreateCustomer(customer crm.Customer) error {
|
|
func (cs *CustomerService) CreateCustomer(customer crm.Customer) error {
|