update api docs & fmt code

This commit is contained in:
runzexia
2019-04-25 19:46:42 +08:00
parent a266d0e9f6
commit d42f886fe8
3 changed files with 34 additions and 10 deletions

View File

@@ -254,7 +254,7 @@ func CreateDevopsProject(username string, workspace string, req *devops.DevOpsPr
}
func GetUserDevopsSimpleRules(username, projectId string) ([]models.SimpleRule, error) {
role,err := devops.GetProjectUserRole(username,projectId)
role, err := devops.GetProjectUserRole(username, projectId)
if err != nil {
glog.Errorf("%+v", err)
return nil, restful.NewError(http.StatusForbidden, err.Error())