| 29 | var _ plugin.ToolLayerScope = (*GiteeRepo)(nil) |
| 30 | |
| 31 | type GiteeRepo struct { |
| 32 | common.Scope `mapstructure:",squash"` |
| 33 | GiteeId int `gorm:"primaryKey"` |
| 34 | Name string `gorm:"type:varchar(255)"` |
| 35 | HTMLUrl string `gorm:"type:varchar(255)"` |
| 36 | Description string |
| 37 | OwnerId int `json:"ownerId"` |
| 38 | OwnerLogin string `json:"ownerLogin" gorm:"type:varchar(255)"` |
| 39 | Language string `json:"language" gorm:"type:varchar(255)"` |
| 40 | ParentGiteeId int `json:"parentId"` |
| 41 | ParentHTMLUrl string `json:"parentHtmlUrl"` |
| 42 | CreatedDate time.Time `json:"createdDate"` |
| 43 | UpdatedDate *time.Time `json:"updatedDate"` |
| 44 | } |
| 45 | |
| 46 | func (r GiteeRepo) ScopeId() string { |
| 47 | return strconv.Itoa(r.GiteeId) |
nothing calls this directly
no outgoing calls
no test coverage detected