103 lines
3.2 KiB
Go
103 lines
3.2 KiB
Go
package proto
|
|
|
|
type AppUpdateReq struct {
|
|
AppId string `json:"appId"`
|
|
Name string `json:"name"`
|
|
Logo string `json:"logo"`
|
|
AppClass string `json:"appClass"`
|
|
AppTag []string `json:"appTag"`
|
|
CoreDescription string `json:"coreDescription"`
|
|
CustomData struct {
|
|
DetailDescription string `json:"detailDescription"`
|
|
} `json:"customData"`
|
|
}
|
|
type AppIsForbiddenUpdateReq struct {
|
|
AppId string `json:"appId"`
|
|
IsForbidden int `json:"isForbidden"` //0:未禁用 1:禁用
|
|
}
|
|
type CreateAppReq struct {
|
|
AppClass string `json:"appClass"`
|
|
AppTag []string `json:"appTag"`
|
|
AppType string `json:"appType"`
|
|
CoreDescription string `json:"coreDescription"`
|
|
Logo string `json:"logo"`
|
|
Name string `json:"name"`
|
|
ProjectType int `json:"projectType"`
|
|
}
|
|
|
|
type MenuInfoRspDataItem struct {
|
|
Name string `json:"name"`
|
|
ID string `json:"id"`
|
|
Image string `json:"image"`
|
|
}
|
|
|
|
type MenuInfoRspData struct {
|
|
Total int `json:"total"`
|
|
List []MenuInfoRspDataItem `json:"list"`
|
|
}
|
|
|
|
type ApiInfoRspData struct {
|
|
ApiName string `json:"apiName"`
|
|
Url string `json:"url"`
|
|
}
|
|
|
|
type RspCustomDataSourceFile struct {
|
|
FileMd5 string `json:"fileMd5"`
|
|
Name string `json:"name"`
|
|
SourceFileUrl string `json:"sourceFileUrl"`
|
|
UploadDate int64 `json:"uploadDate"`
|
|
Url string `json:"url"`
|
|
BasicPackVer string `json:"basicPackVer"`
|
|
Packages []Package `json:"packages"`
|
|
}
|
|
type AppRspDomainInfo struct {
|
|
Business map[string]interface{} `json:"business"`
|
|
Service map[string]interface{} `json:"service"`
|
|
Whitelist map[string]interface{} `json:"whitelist"`
|
|
}
|
|
type AppRuntimeDomainData struct {
|
|
Service struct {
|
|
Request []string `json:"request"`
|
|
Socket []string `json:"socket"`
|
|
Download []string `json:"download"`
|
|
Upload []string `json:"upload"`
|
|
} `json:"service"`
|
|
Business struct {
|
|
Domains []string `json:"domains"`
|
|
} `json:"business"`
|
|
Whitelist struct {
|
|
Domains []string `json:"domains"`
|
|
} `json:"whitelist"`
|
|
Blacklist struct {
|
|
Domains []string `json:"domains"`
|
|
} `json:"blacklist"`
|
|
}
|
|
type AppRspCustomData struct {
|
|
DetailDescription string `json:"detailDescription"` //小程序详细描述
|
|
SourceFile []RspCustomDataSourceFile `json:"sourceFile"`
|
|
VersionDescription string `json:"versionDescription"` //小程序编译包版本描述
|
|
AppRuntimeDomain AppRuntimeDomainData `json:"appRuntimeDomain"`
|
|
MenuInfo *MenuInfoRspData `json:"menuInfo"` //菜单信息
|
|
ApiInfo *[]ApiInfoRspData `json:"apiInfo"` // 已备案接口列表
|
|
}
|
|
|
|
type AppRspStatus struct {
|
|
Value string `json:"value"`
|
|
Reason string `json:"reason"`
|
|
LastUpdated int64 `json:"lastUpdated"`
|
|
ModifiedBy string `json:"modifiedBy"`
|
|
}
|
|
|
|
type WechatLoginInfo struct {
|
|
WechatOriginId string `json:"wechatOriginId"`
|
|
ProfileUrl string `json:"profileUrl"`
|
|
PhoneUrl string `json:"phoneUrl"`
|
|
PaymentUrl string `json:"paymentUrl"`
|
|
ExtUrls []ExtUrls `json:"extUrls"`
|
|
}
|
|
|
|
type ExtUrls struct {
|
|
FieldName string `json:"fieldName"`
|
|
PageUrl string `json:"pageUrl"`
|
|
}
|