Skip to content

Commit e427793

Browse files
committed
mirror struct add swagger documentation
1 parent 5c00b0f commit e427793

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/structs/mirror.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ type CreatePushMirrorOption struct {
1717
// PushMirror represents information of a push mirror
1818
// swagger:model
1919
type PushMirror struct {
20-
RepoName string `json:"repo_name"`
21-
RemoteName string `json:"remote_name"`
22-
RemoteAddress string `json:"remote_address"`
23-
CreatedUnix time.Time `json:"created"`
20+
RepoName string `json:"repo_name"`
21+
RemoteName string `json:"remote_name"`
22+
RemoteAddress string `json:"remote_address"`
23+
// swagger:strfmt date-time
24+
CreatedUnix time.Time `json:"created"`
25+
// swagger:strfmt date-time
2426
LastUpdateUnix time.Time `json:"last_update"`
2527
LastError string `json:"last_error"`
2628
Interval string `json:"interval"`

0 commit comments

Comments
 (0)