finclip-app-manager/domain/entity/proto/apiproto/app.go

128 lines
5.0 KiB
Go

package apiproto
import "finclip-app-manager/domain/entity"
type ListAppVerReq struct {
AppId string `json:"appId" form:"appId"`
PageNo int `json:"pageNo" form:"pageNo"`
PageSize int `json:"pageSize" form:"pageSize"`
Sort string `json:"sort" form:"sort"`
IsIncludeStatus bool `json:"isIncludeStatus" form:"isIncludeStatus"`
Status string `json:"status" form:"status"`
SearchFields string `json:"searchFields" form:"searchFields"`
SearchText string `json:"searchText" form:"searchText"`
DeveloperId string `json:"developerId" from:"developerId"`
}
type AdminGetAppReviewsReq struct {
PageNo int `form:"pageNo"`
PageSize int `form:"pageSize"`
SearchText string `form:"searchText"`
Status string `form:"status"`
}
type UpdateAppUpinfo struct {
CustomData entity.CustomDataInfo `json:"customData"`
Version string `json:"version"`
Status bool `json:"status"`
}
type UpdateAppInfoReq struct {
AppId string `json:"appId"`
BuildInfoId string `json:"buildInfoId"`
UserId string `json:"userId"`
Username string `json:"username"`
UpInfo UpdateAppUpinfo `json:"upInfo"`
}
type SubmitPublishReqest struct {
Id string `json:"id"` // AppBuildID
AppID string `json:"appId" bson:"appId"`
DeveloperID string `json:"developerId" bson:"developerId"`
NeedAutoPub bool `json:"needAutoPub" bson:"needAutoPub"`
TestInfo entity.TestInfo `json:"testInfo"`
}
type ApproveAppReq struct {
AppID string `json:"appId"`
Sequence int `json:"sequence"`
//AdministratorID string `json:"administratorId" bson:"administratorId"`
Status string `json:"status"`
Reason string `json:"reason"`
RequestFrom string `json:"requestFrom"`
}
type ListAppsToBindReq struct {
BindingId string `form:"bindingId"`
SearchText string `form:"searchText"`
SearchFields string `form:"searchFields"`
PageSize int `form:"pageSize"`
PageNo int `form:"pageNo"`
}
type BatchAppsByIdentityReq struct {
Source string `json:"source"`
IdentityType string `json:"identityType"`
Apps []BatchAppsByIdentityAppsItem `json:"apps"`
}
type BatchAppsByIdentityAppsItem struct {
AppId string `json:"appId"`
Identity string `json:"identity"`
}
type IdentityAppsCheckReq struct {
Source string `json:"source"`
IdentityType string `json:"identityType"`
Apps []IdentityAppsCheckAppsItem `json:"apps"`
}
type IdentityAppsCheckAppsItem struct {
AppId string `json:"appId"`
Identity string `json:"identity"`
}
type UpdateExpireInfoReq struct {
Expire int64 `json:"expire"`
}
type SdkMessageInfoObj struct {
Name string `json:"name"` //名称
Provider string `json:"provider"` //提供方
}
type ContactInfoObj struct {
Phone string `json:"phone"` //电话
Email string `json:"email"` //邮箱
WeChat string `json:"weChat"` //微信号
Other string `json:"other"` //其它
}
type UserMessageTypeObj struct {
UserMes string `json:"userMes"` //用户信息
LocationMes string `json:"locationMes"` //位置信息
Microphone string `json:"microphone"` //麦克风
Camera string `json:"camera"` //摄像头
EquipmentMes string `json:"equipmentMes"` //设备信息
AddressBook string `json:"addressBook"` //通讯录
PhotoAlbum string `json:"photoAlbum"` //相册
Calendar string `json:"calendar"` //日历
OperationLog string `json:"operationLog"` //操作日志
Bluetooth string `json:"bluetooth"` //蓝牙
Others string `json:"others"` //其他
//OthersExt string `json:"othersExt"` //其他
}
type PrivacySettingReq struct {
AppId string `json:"appId"`
CommitType int `json:"commitType"` //提交类型 //1:本小程序开发者承诺并保证,未以任何方式处理用户的任何信息。如后续有处理用户信息,会及时更新《小程序隐私保护指引》 2:本小程序处理了用户信息,将如实填写并及时更新用户信息处理情况
UserMessageType UserMessageTypeObj `json:"userMessageType"` //用户使用类型
SdkMessage []SdkMessageInfoObj `json:"sdkMessage"` //sdk信息
ContactInfo ContactInfoObj `json:"contactInfo"` //联系方式
FixedStorageTime int `json:"fixedStorageTime"` //固定存储时间
IsShortestTime bool `json:"isShortestTime"` //是否是最短时间
AdditionalDocName string `json:"additionalDocName"` //补充文档名称
AdditionalDocNetDiskId string `json:"additionalDocNetDiskId"` //补充文档网盘id
AdditionalDocContent string `json:"additionalDocContent"` //补充文档内容
}