From e74e644b881122523200e4a169b6c02295171840 Mon Sep 17 00:00:00 2001 From: fanyangyang Date: Sun, 26 Apr 2020 11:44:50 +0800 Subject: [PATCH] format code --- api/model/pluginModel.go | 4 ++-- builder/model/model.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/model/pluginModel.go b/api/model/pluginModel.go index a1dd6a5db..9d6d98e46 100644 --- a/api/model/pluginModel.go +++ b/api/model/pluginModel.go @@ -218,11 +218,11 @@ type BuildPluginStruct struct { // in: body // required: false RepoURL string `json:"repo_url" validate:"repo_url"` - // git 账户名 + // git username // in: body // required: false Username string `json:"username"` - // git 密码 + // git password // in: body // required: false Password string `json:"password"` diff --git a/builder/model/model.go b/builder/model/model.go index 3bc1d8e76..0c57b7b0c 100644 --- a/builder/model/model.go +++ b/builder/model/model.go @@ -26,8 +26,8 @@ type BuildPluginTaskBody struct { Operator string `json:"operator"` Repo string `json:"repo"` GitURL string `json:"git_url"` - GitUsername string `json:"git_username"` - GitPassword string `json:"git_password"` + GitUsername string `json:"git_username"` + GitPassword string `json:"git_password"` ImageURL string `json:"image_url"` EventID string `json:"event_id"` DeployVersion string `json:"deploy_version"`