type Request {
	Path string `form:"path"`
}

type Response {
	Path    string `json:"path"`
	Message string `json:"message"`
}

type CallbackRequest {
	Path        string            `json:"path"`
	CallbackUrl string            `json:"callback_url"` //回调地址
	OriginData  map[string]string `json:"origin_data"`  //透传数据
}

type CallbackResponse {
}

type OriginDataResponse {
	Path       string            `json:"path"`
	Message    string            `json:"message"`
	OriginData map[string]string `json:"origin_data"` //透传数据
}

service transcoder {
	@handler TranscoderHandler
	get /v1/transcoder(Request) returns (Response)

	@handler TranscoderCallbackHandler
	post /v1/transcoder/callback(CallbackRequest) returns (CallbackResponse)

	@handler TestCallbackHandler
	post /v1/transcoder/test(OriginDataResponse)
}