[REV] Add cloud share ftp config

This commit is contained in:
pujielan 2018-02-05 10:47:59 +08:00
parent 98a0d59861
commit f36f7e4fe4
2 changed files with 12 additions and 0 deletions

View File

@ -95,6 +95,8 @@ class AppSlug():
port=self.ALL_REGION_FTP_PORT)
# 检查service_key对应的文件是否存在,不存在生成
service_dir = self.ALL_REGION_FTP_NAMESPACE + service_key
logger.debug("mq_work.app_slug",
'slug task is {}'.format(self.task))
logger.debug("mq_work.app_slug",
'*******upload dir is {}'.format(service_dir))
utils.check_dir(service_dir)

View File

@ -906,6 +906,7 @@ type PublicShare struct {
EventID string `json:"event_id" validate:"event_id"`
Dest string `json:"dest" validate:"dest|in:yb,ys"`
ServiceID string `json:"service_id" validate:"service_id"`
ShareConf ShareConfItems `json:"share_conf" validate:"share_conf"`
}
//SlugShare Slug 类型
@ -924,6 +925,15 @@ type ImageShare struct {
Image string `json:"image" validate:"image"`
}
//ShareConfItems 分享相关配置
type ShareConfItems struct {
FTPHost string `json:"ftp_host" validate:"ftp_host"`
FTPPort int `json:"ftp_port" validate:"ftp_port"`
FTPUserName string `json:"ftp_username" valiate:"ftp_username"`
FTPPassWord string `json:"ftp_password" validate:"ftp_password"`
FTPNamespace string `json:"ftp_namespace" validate:"ftp_namespace"`
}
//AddDependencyStruct AddDependencyStruct
//swagger:parameters addDependency deleteDependency
type AddDependencyStruct struct {