wf_ins_attach_service.go 720 B

123456789101112131415161718192021222324252627282930
  1. package service
  2. import (
  3. "xps/datasource"
  4. "xps/repositories"
  5. "xps/viewmodel"
  6. )
  7. type WfInsAttachService interface {
  8. GetList(m map[string]interface{}) ([]viewmodel.WfInsAttachInfo, error)
  9. Delete(m map[string]interface{}) error
  10. }
  11. type wfInsAttachService struct {
  12. repo *repositories.WfInsAttachRepo
  13. }
  14. func NewWfInsAttachService() WfInsAttachService {
  15. return &wfInsAttachService{
  16. repo: repositories.NewWfInsAttachRepo(datasource.InstanceMaster()),
  17. }
  18. }
  19. func (s* wfInsAttachService) GetList(m map[string]interface{}) ([]viewmodel.WfInsAttachInfo, error) {
  20. return s.repo.GetList(m)
  21. }
  22. func (s* wfInsAttachService) Delete(m map[string]interface{}) error {
  23. return s.Delete(m)
  24. }