2024-07-17 14:50:29 +08:00
|
|
|
package oss
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
2024-11-19 18:19:02 +08:00
|
|
|
"time"
|
2024-07-17 14:50:29 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type GetApkVersionRequest struct {
|
|
|
|
*requests.JsonRequest
|
2024-10-30 17:49:15 +08:00
|
|
|
Filepath string `position:"Json" field:"filepath"`
|
2024-07-17 14:50:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetApkVersionResponse struct {
|
|
|
|
*responses.BaseResponse
|
|
|
|
Code int `json:"code"`
|
|
|
|
Msg string `json:"msg"`
|
|
|
|
Data struct {
|
2024-10-30 17:49:15 +08:00
|
|
|
VersionCode string `json:"versionCode"`
|
|
|
|
VersionName string `json:"versionName"`
|
|
|
|
MinSdkVersion string `json:"minSdkVersion"`
|
|
|
|
TargetSdkVersion string `json:"targetSdkVersion"`
|
2024-07-17 14:50:29 +08:00
|
|
|
} `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreateGetApkVersionRequest() (req *GetApkVersionRequest) {
|
|
|
|
req = &GetApkVersionRequest{
|
|
|
|
JsonRequest: &requests.JsonRequest{},
|
|
|
|
}
|
|
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/apk/version")
|
|
|
|
req.Method = requests.POST
|
2024-11-19 18:19:02 +08:00
|
|
|
req.SetReadTimeout(30 * time.Second)
|
2024-07-17 14:50:29 +08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreateGetApkVersionResponse() *GetApkVersionResponse {
|
|
|
|
return &GetApkVersionResponse{
|
|
|
|
BaseResponse: &responses.BaseResponse{},
|
|
|
|
}
|
|
|
|
}
|