feat: support ins pause and enable
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user