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.

issue_comment.go 955B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. import (
  6. "time"
  7. )
  8. // Comment represents a comment on a commit or issue
  9. type Comment struct {
  10. ID int64 `json:"id"`
  11. HTMLURL string `json:"html_url"`
  12. PRURL string `json:"pull_request_url"`
  13. IssueURL string `json:"issue_url"`
  14. Poster *User `json:"user"`
  15. Body string `json:"body"`
  16. // swagger:strfmt date-time
  17. Created time.Time `json:"created_at"`
  18. // swagger:strfmt date-time
  19. Updated time.Time `json:"updated_at"`
  20. }
  21. // CreateIssueCommentOption options for creating a comment on an issue
  22. type CreateIssueCommentOption struct {
  23. // required:true
  24. Body string `json:"body" binding:"Required"`
  25. }
  26. // EditIssueCommentOption options for editing a comment
  27. type EditIssueCommentOption struct {
  28. // required: true
  29. Body string `json:"body" binding:"Required"`
  30. }