package dto

type BaseResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type CreatePrivateLinkReq struct {
	ServiceName string `json:"service_name"`
}

type CreatePrivateLinkResp struct {
	BaseResp
	VpcEndpointId string `json:"endpoint_id"`
	PrivateDNS    string `json:"private_dns"`
}

type DeletePrivateLinkResp struct {
	BaseResp
	VpcEndpointId string `json:"endpoint_id"`
}

func NewErrorToBaseResp(code int, msg string) *BaseResp {
	return &BaseResp{
		Code:    code,
		Message: msg,
	}
}
