feat: support ins pause and enable

This commit is contained in:
engigu
2024-01-14 17:05:35 +08:00
parent c935182412
commit 6349c1e1b7
8 changed files with 115 additions and 26 deletions
+5
View File
@@ -16,6 +16,7 @@ type SendTaskInsService struct {
PageNum int
PageSize int
Enable int
}
// ValidateDiffWay 各种发信渠道具体字段校验
@@ -77,6 +78,10 @@ func (st *SendTaskInsService) Delete() error {
return models.DeleteMsgTaskIns(st.ID)
}
func (st *SendTaskInsService) Update(data map[string]interface{}) error {
return models.UpdateMsgTaskIns(st.ID, data)
}
func (st *SendTaskInsService) Count() (int, error) {
return models.GetSendTasksTotal(st.Name, st.getMaps())
}