This commit is contained in:
Liang Ding 2022-07-05 21:44:10 +08:00
parent a3c3ec7b83
commit 4388d8dee7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 39 additions and 3 deletions

View file

@ -66,6 +66,22 @@ func getRepoSnapshots(c *gin.Context) {
}
}
func getCloudRepoTagSnapshots(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
snapshots, err := model.GetCloudRepoTagSnapshots()
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = map[string]interface{}{
"snapshots": snapshots,
}
}
func getRepoTagSnapshots(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)