This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
赵连启
committed
Feb 28, 2019
1 parent
95dc056
commit 5a32a0f
Showing
8 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package wallecontrollers | ||
|
||
import ( | ||
"controllers" | ||
"library/components" | ||
"models" | ||
) | ||
|
||
type TagController struct { | ||
controllers.BaseController | ||
} | ||
|
||
func (c *TagController) Get() { | ||
if c.Project == nil || c.Project.Id == 0 { | ||
c.SetJson(1, nil, "Parameter error") | ||
return | ||
} | ||
s := components.BaseComponents{} | ||
s.SetProject(c.Project) | ||
s.SetTask(&models.Task{}) | ||
g := components.BaseGit{} | ||
g.SetBaseComponents(s) | ||
res, err := g.GetTagList(200) | ||
if err != nil { | ||
c.SetJson(1, nil, "获取tag错误—"+err.Error()) | ||
return | ||
} else { | ||
c.SetJson(0, res, "") | ||
return | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters