@@ -25,10 +25,10 @@ type WebLinkInfo struct {
2525
2626// GitPersonInfo entity contains information about the author/committer of a commit.
2727type GitPersonInfo struct {
28- Name string `json:"name"`
29- Email string `json:"email"`
30- Date string `json:"date"`
31- TZ int `json:"tz"`
28+ Name string `json:"name"`
29+ Email string `json:"email"`
30+ Date Timestamp `json:"date"`
31+ TZ int `json:"tz"`
3232}
3333
3434// NotifyInfo entity contains detailed information about who should be
@@ -67,7 +67,7 @@ type ChangeEditMessageInput struct {
6767type ChangeMessageInfo struct {
6868 ID string `json:"id"`
6969 Author AccountInfo `json:"author,omitempty"`
70- Date string `json:"date"`
70+ Date Timestamp `json:"date"`
7171 Message string `json:"message"`
7272 Tag string `json:"tag,omitempty"`
7373 RevisionNumber int `json:"_revision_number,omitempty"`
@@ -247,7 +247,7 @@ type CommentInput struct {
247247 Line int `json:"line,omitempty"`
248248 Range * CommentRange `json:"range,omitempty"`
249249 InReplyTo string `json:"in_reply_to,omitempty"`
250- Updated string `json:"updated,omitempty"`
250+ Updated * Timestamp `json:"updated,omitempty"`
251251 Message string `json:"message,omitempty"`
252252}
253253
@@ -274,9 +274,9 @@ type ChangeInfo struct {
274274 ChangeID string `json:"change_id"`
275275 Subject string `json:"subject"`
276276 Status string `json:"status"`
277- Created string `json:"created"`
278- Updated string `json:"updated"`
279- Submitted string `json:"submitted,omitempty"`
277+ Created Timestamp `json:"created"`
278+ Updated Timestamp `json:"updated"`
279+ Submitted * Timestamp `json:"submitted,omitempty"`
280280 Starred bool `json:"starred,omitempty"`
281281 Reviewed bool `json:"reviewed,omitempty"`
282282 Mergeable bool `json:"mergeable,omitempty"`
@@ -318,7 +318,7 @@ type LabelInfo struct {
318318type RevisionInfo struct {
319319 Draft bool `json:"draft,omitempty"`
320320 Number int `json:"_number"`
321- Created string `json:"created"`
321+ Created Timestamp `json:"created"`
322322 Uploader AccountInfo `json:"uploader"`
323323 Ref string `json:"ref"`
324324 Fetch map [string ]FetchInfo `json:"fetch"`
@@ -339,7 +339,7 @@ type CommentInfo struct {
339339 Range CommentRange `json:"range,omitempty"`
340340 InReplyTo string `json:"in_reply_to,omitempty"`
341341 Message string `json:"message,omitempty"`
342- Updated string `json:"updated"`
342+ Updated Timestamp `json:"updated"`
343343 Author AccountInfo `json:"author,omitempty"`
344344}
345345
0 commit comments