2020-08-04 00:51:19 +08:00
|
|
|
package requests
|
|
|
|
|
|
|
|
type CommonRequest struct {
|
|
|
|
*baseRequest
|
2020-08-04 12:23:34 +08:00
|
|
|
Product string
|
|
|
|
Ontology AcsRequest
|
|
|
|
}
|
|
|
|
|
|
|
|
func (request *CommonRequest) TransToAscRequest() {
|
|
|
|
httpReqeust := &HttpRequest{}
|
|
|
|
httpReqeust.baseRequest = request.baseRequest
|
|
|
|
httpReqeust.product = request.Product
|
|
|
|
request.Ontology = httpReqeust
|
|
|
|
}
|
|
|
|
|
|
|
|
func (request *CommonRequest) BuildUrl() string {
|
|
|
|
return request.Ontology.BuildUrl()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (request *CommonRequest) BuildQueries() string {
|
|
|
|
return request.Ontology.BuildQueries()
|
2020-08-04 00:51:19 +08:00
|
|
|
}
|