59 lines
1.5 KiB
Go
59 lines
1.5 KiB
Go
package proto
|
|
|
|
import "intent-system/pkg/dal/models"
|
|
|
|
type DeployDeployReq struct {
|
|
UserName string `json:"user_name" binding:"required"`
|
|
AppID string `json:"id" binding:"required"`
|
|
}
|
|
|
|
type DeployDeployResp struct {
|
|
}
|
|
|
|
type DeployStatusReq struct {
|
|
AppID string `json:"id" binding:"required"`
|
|
}
|
|
|
|
// type DeployStatusResp struct {
|
|
// Id int32 `json:"id"`
|
|
// Nid string `json:"n_id" db:"n_id" bson:"n_id"`
|
|
// MbUuid string `json:"mb_uuid" db:"mb_uuid" bson:"mb_uuid"`
|
|
// RepoName string `json:"repo_name" db:"repo_name"`
|
|
// Digest string `json:"digest" db:"digest"`
|
|
// Type int32 `json:"type" db:"type"`
|
|
// Status string `json:"status" db:"status"`
|
|
// CreatedTime int64 `json:"created_time" db:"created_time" bson:"created_time"` //Created Time
|
|
// UpdatedTime int64 `json:"updated_time" db:"updated_time" bson:"updated_time"` //updated time
|
|
// }
|
|
|
|
type DeployStatusResp struct {
|
|
Data *models.DeployDO `json:"data"`
|
|
}
|
|
|
|
type DeployDeleteReq struct {
|
|
UserName string `json:"user_name"`
|
|
Nid string `json:"n_id"`
|
|
}
|
|
|
|
type DeployDeleteResp struct {
|
|
// 可根据需要加上 message 等字段
|
|
}
|
|
|
|
type DeployStartReq struct {
|
|
UserName string `json:"user_name"`
|
|
Nid string `json:"n_id"`
|
|
}
|
|
|
|
type DeployStartResp struct {
|
|
// 可根据需要加上 message 等字段
|
|
}
|
|
|
|
type DeployStopReq struct {
|
|
UserName string `json:"user_name"`
|
|
Nid string `json:"n_id"`
|
|
}
|
|
|
|
type DeployStopResp struct {
|
|
// 可根据需要加上 message 等字段
|
|
}
|