package service import ( "xps/cmd/datasource" "xps/pkg/bpm/repository" "xps/pkg/bpm/viewmodel" ) type WfInsAttachService interface { GetList(m map[string]interface{}) ([]viewmodel.WfInsAttachInfo, error) Delete(m map[string]interface{}) error } type wfInsAttachService struct { repo *repository.WfInsAttachRepo } func NewWfInsAttachService() WfInsAttachService { return &wfInsAttachService{ repo: repository.NewWfInsAttachRepo(datasource.InstanceMaster()), } } func (s *wfInsAttachService) GetList(m map[string]interface{}) ([]viewmodel.WfInsAttachInfo, error) { return s.repo.GetList(m) } func (s *wfInsAttachService) Delete(m map[string]interface{}) error { return s.Delete(m) }