package service import ( "xps/datasource" "xps/repositories" "xps/viewmodel" ) type WfInsAttachService interface { GetList(m map[string]interface{}) ([]viewmodel.WfInsAttachInfo, error) Delete(m map[string]interface{}) error } type wfInsAttachService struct { repo *repositories.WfInsAttachRepo } func NewWfInsAttachService() WfInsAttachService { return &wfInsAttachService{ repo: repositories.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) }