You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
678 B
29 lines
678 B
package service |
|
|
|
import ( |
|
"time" |
|
|
|
"go-common/app/admin/ep/melloi/model" |
|
) |
|
|
|
//AddComment add comment for test job |
|
func (s *Service) AddComment(comment *model.Comment) error { |
|
comment.Status = 1 |
|
comment.SubmitDate = time.Now() |
|
return s.dao.AddComment(comment) |
|
} |
|
|
|
//QueryComment query comment |
|
func (s *Service) QueryComment(comment *model.Comment) (*model.QueryCommentResponse, error) { |
|
return s.dao.QueryComment(comment) |
|
} |
|
|
|
//UpdateComment update comment |
|
func (s *Service) UpdateComment(comment *model.Comment) error { |
|
return s.dao.UpdateComment(comment) |
|
} |
|
|
|
//DeleteComment delete comment |
|
func (s *Service) DeleteComment(id int64) error { |
|
return s.dao.DeleteComment(id) |
|
}
|
|
|