|
|
|
@@ -41,7 +41,7 @@ type TagsDetail struct { |
|
|
|
TagId int64 |
|
|
|
TagName string |
|
|
|
TagLimit int |
|
|
|
RepoList []Repository |
|
|
|
RepoList []*Repository |
|
|
|
} |
|
|
|
|
|
|
|
func GetTagByID(id int64) (*OfficialTag, error) { |
|
|
|
@@ -141,8 +141,8 @@ func GetAllOfficialTagRepos(orgID int64, isOwner bool) ([]TagsDetail, error) { |
|
|
|
return result, nil |
|
|
|
} |
|
|
|
|
|
|
|
func GetOfficialTagDetail(orgID, tagId int64) ([]Repository, error) { |
|
|
|
t := make([]Repository, 0) |
|
|
|
func GetOfficialTagDetail(orgID, tagId int64) ([]*Repository, error) { |
|
|
|
t := make([]*Repository, 0) |
|
|
|
const SQLCmd = "select t2.* from official_tag_repos t1 inner join repository t2 on t1.repo_id = t2.id where t1.org_id = ? and t1.tag_id=? order by t2.updated_unix desc" |
|
|
|
|
|
|
|
if err := x.SQL(SQLCmd, orgID, tagId).Find(&t); err != nil { |
|
|
|
|