package crm import "server/dao/crm" type DemandService struct{} func (ds *DemandService) QueryDemandsByCustomerId(id int) ([]crm.Demand, error) { return crm.QueryDemandsByCustomerId(id) } func (ds *DemandService) CreateDemand(demand crm.Demand) error { return demand.CreateDemand() } func (ds *DemandService) UpdateDemand(demand crm.Demand) error { return demand.UpdateDemand() } func (ds *DemandService) DeleteDemand(id int) error { return crm.DeleteDemand(id) }