You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/cms_api_struct/admin.go

44 lines
1.2 KiB

3 years ago
package cms_api_struct
3 years ago
3 years ago
import (
apiStruct "Open_IM/pkg/base_info"
)
3 years ago
type AdminLoginRequest struct {
AdminName string `json:"admin_name" binding:"required"`
3 years ago
Secret string `json:"secret" binding:"required"`
3 years ago
}
type AdminLoginResponse struct {
Token string `json:"token"`
3 years ago
}
type UploadUpdateAppReq struct {
3 years ago
OperationID string `form:"operationID" binding:"required"`
Type int `form:"type" binding:"required"`
Version string `form:"version" binding:"required"`
//File *multipart.FileHeader `form:"file" binding:"required"`
//Yaml *multipart.FileHeader `form:"yaml" binding:"required"`
ForceUpdate bool `form:"forceUpdate" binding:"required"`
3 years ago
}
type UploadUpdateAppResp struct {
apiStruct.CommResp
}
type GetDownloadURLReq struct {
OperationID string `json:"operationID" binding:"required"`
Type int `json:"type" binding:"required"`
Version string `json:"version" binding:"required"`
}
type GetDownloadURLResp struct {
apiStruct.CommResp
Data struct {
HasNewVersion bool `json:"hasNewVersion"`
ForceUpdate bool `json:"forceUpdate"`
FileURL string `json:"fileURL"`
YamlURL string `json:"yamlURL"`
} `json:"data"`
}