Documentation
¶
Index ¶
- Constants
- type Claims
- type Description
- type GetTokenRequest
- type GetTokenResponse
- type GetVersionListRequest
- type GetVersionListResponse
- type UserInfo
- type UserInfoResponse
- type VersionChangeStatusRequest
- type VersionChangeStatusResponse
- type VersionCheckAndUpdateRequest
- type VersionCheckAndUpdateResponse
- type VersionCreateRequest
- type VersionCreateResponse
- type VersionForm
- type VersionUpdateRequest
- type VersionUpdateResponse
Constants ¶
View Source
const ( PlatformChat33Pro = "Chat33Pro" Size = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
Username string `json:"username"`
jwt.StandardClaims
}
type Description ¶
type Description []string
func ConvertDescription ¶
func ConvertDescription(str string) (Description, error)
func (*Description) ToString ¶
func (desc *Description) ToString() string
type GetTokenRequest ¶
type GetTokenResponse ¶
type GetTokenResponse struct {
UserInfo UserInfoResponse `json:"userInfo"`
}
type GetVersionListRequest ¶
type GetVersionListResponse ¶
type GetVersionListResponse struct {
TotalElements int64 `json:"totalElements"`
TotalPages int64 `json:"totalPages"`
VersionList []VersionForm `json:"versionList"`
}
type UserInfoResponse ¶
type VersionChangeStatusResponse ¶
type VersionChangeStatusResponse struct {
VersionList []VersionForm `json:"versionList"`
}
type VersionCheckAndUpdateResponse ¶
type VersionCheckAndUpdateResponse struct {
VersionForm
}
type VersionCreateRequest ¶
type VersionCreateRequest struct {
Platform string `json:"platform"`
Description []string `json:"description"`
Force bool `json:"force"`
Url string `json:"url"`
VersionCode int64 `json:"versionCode"`
VersionName string `json:"versionName"`
DeviceType string `json:"deviceType"`
OpeUser string `json:"opeUser"`
Md5 string `json:"md5"`
Size int64 `json:"size"`
}
type VersionCreateResponse ¶
type VersionCreateResponse struct {
Version VersionForm `json:"version"`
}
type VersionForm ¶
type VersionForm struct {
Id int64 `json:"id"`
Platform string `json:"platform"`
Status int32 `json:"status"`
DeviceType string `json:"deviceType"`
VersionName string `json:"versionName"`
VersionCode int64 `json:"versionCode"`
Url string `json:"url"`
Force bool `json:"force"`
Description Description `json:"description"`
OpeUser string `json:"opeUser"`
Md5 string `json:"md5"`
Size int64 `json:"size"`
UpdateTime int64 `json:"updateTime"`
CreateTime int64 `json:"createTime"`
}
func ConvertVersionForm ¶
func ConvertVersionForm(record *map[string]string) (*VersionForm, error)
type VersionUpdateRequest ¶
type VersionUpdateRequest struct {
Description []string `json:"description"`
Force bool `json:"force"`
Url string `json:"url"`
VersionCode int64 `json:"versionCode"`
VersionName string `json:"versionName"`
Id int64 `json:"id"`
OpeUser string `json:"opeUser"`
Md5 string `json:"md5"`
Size int64 `json:"size"`
}
type VersionUpdateResponse ¶
type VersionUpdateResponse struct {
Version VersionForm `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.