demand.go 474 B

123456789101112131415161718192021
  1. package crm
  2. import "server/dao/crm"
  3. type DemandService struct{}
  4. func (ds *DemandService) QueryDemandsByCustomerId(id int) ([]crm.Demand, error) {
  5. return crm.QueryDemandsByCustomerId(id)
  6. }
  7. func (ds *DemandService) CreateDemand(demand crm.Demand) error {
  8. return demand.CreateDemand()
  9. }
  10. func (ds *DemandService) UpdateDemand(demand crm.Demand) error {
  11. return demand.UpdateDemand()
  12. }
  13. func (ds *DemandService) DeleteDemand(id int) error {
  14. return crm.DeleteDemand(id)
  15. }