Documentation ¶
Index ¶
- Constants
- type App_ChangeLogoReq
- type App_CreateReq
- type App_InfoRsp
- type App_UpdateReq
- type File_DownloadReq
- type File_InitialUploadReq
- type File_InitialUploadRsp
- type File_MergePartReq
- type File_UploadPartReq
- type HLK_QueryJobInfoReq
- type HLK_QueryJobInfoRsp
- type Open_CreateReq
- type Open_CreateRsp
- type Open_UpdateReq
- type User_ChangeAvatarReq
- type User_ChangePasswordReq
- type User_InfoRsp
- type User_LoginReq
- type User_RegisterReq
- type User_UpdateInfoReq
Constants ¶
View Source
const ( // 下载用户头像 File_DownloadType_UserAvatar = 1 + iota // 下载应用图标 File_DownloadType_AppLogo )
View Source
const ( // 上传用户头像 File_UploadType_UserAvatar = 1 + iota // 上传应用图标 File_UploadType_AppLogo )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App_ChangeLogoReq ¶
type App_ChangeLogoReq struct {
LogoId string `json:"logoId"`
}
App_ChangeLogoReq 修改应用图标请求
type App_CreateReq ¶
type App_CreateReq struct { Name string Platform int Logo *multipart.FileHeader Admins []string Members []string }
App_CreateReq 创建应用请求
type App_InfoRsp ¶
type App_InfoRsp struct { AppId string `json:"appId,omitempty"` Name string `json:"name,omitempty"` Avatar string `json:"avatar,omitempty"` Platform int `json:"platform,omitempty"` Admins []*struct { NameEn string `json:"nameEn,omitempty"` NameZn string `json:"nameZh,omitempty"` } `json:"admins,omitempty"` Members []*struct { NameEn string `json:"nameEn,omitempty"` NameZn string `json:"nameZh,omitempty"` } `json:"members,omitempty"` }
App_InfoRsp 应用信息响应
type App_UpdateReq ¶
type App_UpdateReq struct { Name string `json:"name"` Admins []string `json:"admins"` Members []string `json:"members"` }
App_UpdateReq 更新应用信息请求
type File_DownloadReq ¶
type File_DownloadReq struct { Type int `form:"type"` AppId string `form:"appId"` FileId string `form:"fileId"` }
File_DownloadReq 下载请求参数
type File_InitialUploadReq ¶
type File_InitialUploadReq struct { Type int `json:"type"` Name string `json:"name"` Size int `json:"size"` MD5 string `json:"md5"` SHA1 string `json:"sha1"` SHA256 string `json:"sha256"` }
File_InitialUploadReq 初始化分片上传请求参数
type File_InitialUploadRsp ¶
type File_InitialUploadRsp struct { Id string `json:"id,omitempty"` Exists bool `json:"exists,omitempty"` }
File_InitialUploadRsp 初始化分片上传响应数据
type File_UploadPartReq ¶
File_UploadPartReq 上传分片请求参数
type HLK_QueryJobInfoReq ¶
type HLK_QueryJobInfoReq struct {
Id uint `form:"id"`
}
HLK_QueryJobInfoReq 查询 hlk 测试任务请求
type HLK_QueryJobInfoRsp ¶
type HLK_QueryJobInfoRsp struct { Id uint `json:"id"` UserId uint `json:"userId"` AppId uint `json:"appId"` FileId string `json:"fileId"` HLKTestSystem string `json:"hlkTestSystem"` CreateTime time.Time `json:"createTime"` FinishTime time.Time `json:"finishTime"` Status uint8 `json:"status"` TmpFileId string `json:"tmpFileId"` SignedFileId string `json:"signedFileId"` }
HLK_QueryJobInfoRsp 查询 hlk 测试任务响应
type Open_CreateReq ¶
type Open_CreateReq struct { Id string `json:"id"` IP string `json:"ip"` Frequency int `json:"frequency"` ActionIds []int `json:"actionIds"` }
Open_CreateReq 创建凭证请求
type Open_CreateRsp ¶
type Open_CreateRsp struct {
Secret string `json:"secret"`
}
Open_CreateRsp 创建凭证响应
type Open_UpdateReq ¶
type Open_UpdateReq struct { Id string `json:"id"` IP string `json:"ip"` Frequency int `json:"frequency"` ActionIds []int `json:"actionIds"` }
Open_UpdateReq 修改凭证请求
type User_ChangeAvatarReq ¶
type User_ChangeAvatarReq struct {
Avatar *multipart.FileHeader
}
User_ChangeAvatarReq 修改头像请求
type User_ChangePasswordReq ¶
type User_ChangePasswordReq struct { OldPassword string `json:"oldPassword"` NewPassword string `json:"newPassword"` NewPasswordAgain string `json:"newPasswordAgain"` }
User_ChangePasswordReq 更改密码请求
type User_InfoRsp ¶
type User_InfoRsp struct { NameEn string `json:"nameEn,omitempty"` Avatar string `json:"avatar,omitempty"` NameZh string `json:"nameZh,omitempty"` }
User_InfoRsp 用户信息响应
type User_LoginReq ¶
type User_LoginReq struct { Name string `json:"name"` Password string `json:"password"` UserAgent string `json:"userAgent"` }
User_LoginReq 登陆请求
type User_RegisterReq ¶
type User_RegisterReq struct { NameZh string NameEn string Avatar *multipart.FileHeader Password string UserAgent string }
User_RegisterReq 注册请求
type User_UpdateInfoReq ¶
type User_UpdateInfoReq struct {
NameZh string `json:"nameZh"`
}
User_UpdateInfoReq 更新用户信息请求
Click to show internal directories.
Click to hide internal directories.