task_status.go 308 B

123456789101112
  1. package service
  2. import (
  3. "context"
  4. "fmt"
  5. )
  6. // InsertTaskStatus insert task status
  7. func (s *Service) InsertTaskStatus(c context.Context, ctype, status int, date, message string) (err error) {
  8. _, err = s.dao.InsertTaskStatus(c, fmt.Sprintf("(%d, %d, '%s', '%s')", ctype, status, date, message))
  9. return
  10. }