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

89 lines
2.8 KiB
Go
Raw Normal View History

2023-10-31 14:07:26 +08:00
package apiproto
type CreateBundleReq struct {
BundleId string `json:"bundleId"`
Platform string `json:"platform"`
SDKKey string `json:"SDKKey" `
SDKID string `json:"SDKID"`
IsFirstCreate bool `json:"isFirstCreate"`
CreatedAt int64 `json:"createdAt"`
CreatedAccount string `json:"createdAccount"`
CreatedBy string `json:"createdBy"`
IsForbidden int `json:"isForbidden"`
IsReview int `json:"-"`
}
type BindingUpdateReq struct {
IsDev bool
Type string
BindingId string
AppIds []string
Reason string
}
type ListBindingsReq struct {
PullType string `json:"pullType" form:"pullType"`
PageNo int `json:"pageNo" form:"pageNo"`
PageSize int `json:"pageSize" form:"pageSize"`
Sort string `json:"sort" form:"sort"`
SearchFields string `json:"searchFields" form:"searchFields"`
SearchText string `json:"searchText" form:"searchText"`
DeveloperId string `json:"developerId" from:"developerId"`
CooperateStatus string `json:"cooperateStatus" form:"cooperateStatus,default=all"`
Platform int `json:"platform" form:"platform,default=2"`
}
type DevListBindingReq struct {
PullType string
SortType string
PageNo int
PageSize int
SearchTxt string
BindStatus string
UserId string
Platform int
}
type GetBindingsByAppIdReq struct {
PageNo int `json:"pageNo" form:"pageNo"`
PageSize int `json:"pageSize" form:"pageSize"`
AppId string `json:"appId" form:"appId"`
}
type BindingUpdateRequest struct {
BindingID string `json:"bindingId" bson:"bindingId"`
Operation string `json:"operation" bson:"operation"`
AppIDs []string `json:"appIds" bson:"appIds"`
AppName string `json:"appName" bson:"appName"`
Owner string `json:"owner" bson:"owner"`
BundlesInfo []CreateBundleReq `json:"bundleInfos" bson:"bundleInfos"`
AddLimitNum int `json:"addLimitNum" bson:"addLimitNum"`
AutoBind int `json:"autoBind"`
HiddenBundle int `json:"hiddenBundle"`
Reason string `json:"reason"`
ToBindingID string `json:"toBindingId"`
}
type SyncOrganBindingReq struct {
GroupID string `json:"groupId"`
GroupName string `json:"groupName"`
Operation string `json:"operation"`
}
type ListReviewBundleReq struct {
SearchText string `json:"searchText" form:"searchText"`
PageSize int `json:"pageSize" form:"pageSize"`
PageNo int `json:"pageNo" form:"pageNo"`
Type int `json:"type" form:"type"`
}
type BundleReviewItem struct {
BindingId string `json:"bindingId"`
BundleId string `json:"bundleId"`
}
type UpdateReviewBundleReq struct {
Operation string `json:"operation"`
Reviews []BundleReviewItem `json:"reviews"`
}