317 lines
6.7 KiB
Protocol Buffer
317 lines
6.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
option go_package = "./;pb";
|
|
|
|
import "common.proto";
|
|
//import "google/protobuf/any.proto";
|
|
|
|
service MopAppManageSvr {
|
|
rpc RuleEngineGetAppInfo (RuleEngineGetAppInfoReq) returns (RuleEngineGetAppInfoRsp) {}
|
|
rpc RuleEngineGetAppVerInfo (RuleEngineGetAppVerInfoReq) returns (RuleEngineGetAppVerInfoRsp) {}
|
|
rpc OpenApiGetAppVerInfo (OpenApiGetAppVerInfoReq) returns (OpenApiGetAppVerInfoRsp) {}
|
|
rpc GetOrganIdBySdkKey (GetOrganIdBySdkKeyReq) returns (GetOrganIdBySdkKeyRsp) {}
|
|
rpc BatchGetAppAndVerInfo (BatchGetAppAndVerInfoReq) returns (BatchGetAppAndVerInfoRsp) {}
|
|
rpc BatchAppsByIdentity (BatchAppsByIdentityReq) returns (BatchAppsByIdentityRsp) {}//根据标识获取小程序信息
|
|
rpc IdentityAppsCheck (IdentityAppsCheckReq) returns (IdentityAppsCheckRsp) {}
|
|
rpc OpenApiGetQRcodeAppVerInfo (OpenApiGetQRcodeAppVerInfoReq) returns (OpenApiGetAppVerInfoRsp) {}
|
|
rpc GetBuildAppInfo (GetBuildAppInfoReq) returns (GetBuildAppInfoRsp) {}
|
|
}
|
|
|
|
//接口一
|
|
message RuleEngineGetAppInfoReq {
|
|
string sdkKey = 1;
|
|
string appId = 2;
|
|
string sdkVer = 3;
|
|
}
|
|
|
|
message Status {
|
|
string value = 1 ;
|
|
string reason = 2 ;
|
|
int64 lastUpdated = 3 ;
|
|
string modifiedBy = 4 ;
|
|
}
|
|
|
|
message SpecificStatus {
|
|
string reason = 1;
|
|
int64 lastUpdated = 2;
|
|
string modifiedBy = 3;
|
|
}
|
|
|
|
message MenuInfoRspDataItem {
|
|
string name = 1;
|
|
string id = 2;
|
|
string image = 3;
|
|
}
|
|
|
|
message MenuInfoRspData {
|
|
int32 total = 1;
|
|
repeated MenuInfoRspDataItem list = 2;
|
|
}
|
|
|
|
message ApiInfoRspData {
|
|
string apiName = 1;
|
|
string url = 2;
|
|
}
|
|
|
|
message CustomData {
|
|
AppRuntimeDomain appRuntimeDomain = 1;
|
|
repeated SourceFileData sourceFile = 2;
|
|
string versionDescription = 3;
|
|
string detailDescription = 4;
|
|
MenuInfoRspData menuInfo = 5;
|
|
repeated ApiInfoRspData apiInfo = 6;
|
|
}
|
|
|
|
message WechatLoginInfo {
|
|
string wechatOriginId = 1;
|
|
string profileUrl = 2;
|
|
string phoneUrl = 3;
|
|
string paymentUrl = 4;
|
|
repeated ExtUrls extUrls = 5;
|
|
}
|
|
|
|
message ExtUrls {
|
|
string fieldName = 1;
|
|
string pageUrl = 2;
|
|
}
|
|
|
|
message AppRuntimeDomain {
|
|
message Business{
|
|
repeated string domains= 1;
|
|
}
|
|
message Service{
|
|
repeated string download= 1;
|
|
repeated string request= 2;
|
|
repeated string socket= 3;
|
|
repeated string upload= 4;
|
|
}
|
|
message Whitelist {
|
|
repeated string domains= 1;
|
|
}
|
|
message Blacklist {
|
|
repeated string domains= 1;
|
|
}
|
|
Business business = 1;
|
|
Service service = 2;
|
|
Whitelist whitelist = 3;
|
|
Blacklist blacklist = 4;
|
|
}
|
|
|
|
message SourceFileData {
|
|
string fileMd5 = 1;
|
|
string name = 2;
|
|
int64 uploadDate = 3;
|
|
string url = 4;
|
|
string sourceFileUrl = 5;
|
|
string basicPackVer = 6;
|
|
repeated Package packages = 7;
|
|
}
|
|
|
|
message Package{
|
|
string root =1;
|
|
string name=2;
|
|
repeated string pages=3;
|
|
bool independent = 4;
|
|
string filename = 5;
|
|
string fileUrl = 6;
|
|
string fileMd5 = 7;
|
|
}
|
|
|
|
message AppInfoRspData {
|
|
string appClass = 1;
|
|
string appId = 2;
|
|
string appType = 3;
|
|
string coreDescription = 4;
|
|
string corporationId = 5;
|
|
int64 created = 6;
|
|
string createdBy = 7;
|
|
CustomData customData = 8;
|
|
string developerId = 9;
|
|
string groupId = 10;
|
|
string groupName = 11;
|
|
bool inGrayRelease = 12;
|
|
string logo = 13;
|
|
string name = 14;
|
|
int32 sequence = 15;
|
|
string version = 16;
|
|
Status status = 17;
|
|
bool isTemp = 18;
|
|
bool isUserLimit = 19;
|
|
bool needCrt = 20;
|
|
int32 developerStatus = 21;
|
|
WechatLoginInfo wechatLoginInfo = 22;
|
|
repeated string appTag = 23;
|
|
int32 privacySettingType = 24;
|
|
int32 projectType = 25;
|
|
}
|
|
|
|
message RuleEngineGetAppInfoRsp {
|
|
CommonResult result = 1;
|
|
AppInfoRspData data = 2;
|
|
//google.protobuf.Any data = 2;
|
|
}
|
|
|
|
//接口二
|
|
message RuleEngineGetAppVerInfoReq {
|
|
string sdkKey = 1;
|
|
string appId = 2;
|
|
int32 version = 3;
|
|
string sdkVer = 4;
|
|
}
|
|
|
|
message RuleEngineGetAppVerInfoRsp {
|
|
CommonResult result = 1;
|
|
AppInfoRspData data = 2;
|
|
//google.protobuf.Any data = 2;
|
|
}
|
|
|
|
//接口三
|
|
message OpenApiGetAppVerInfoReq {
|
|
string appId = 1;
|
|
int32 version = 2;
|
|
string sdkKey = 3;
|
|
string sdkVer = 4;
|
|
}
|
|
|
|
message OpenApiGetAppVerInfoRsp {
|
|
CommonResult result = 1;
|
|
AppInfoRspData data = 2;
|
|
//google.protobuf.Any data = 2;
|
|
}
|
|
|
|
//接口四
|
|
message GetOrganIdBySdkKeyReq {
|
|
string sdkKey = 1;
|
|
}
|
|
|
|
message GetOrganIdBySdkKeyRsp {
|
|
CommonResult result = 1;
|
|
message DATA {
|
|
string organId = 1;
|
|
bool isWhite = 2;
|
|
}
|
|
DATA data = 2;
|
|
}
|
|
|
|
//接口五,批量获取小程序详情和小程序版本详情
|
|
message BatchGetAppAndVerInfoReq {
|
|
string sdkKey = 1;
|
|
repeated string appList = 2;
|
|
message AppAndVer{
|
|
string appId = 1;
|
|
int32 sequence = 2;
|
|
}
|
|
repeated AppAndVer appVerList = 3;
|
|
string sdkVer = 4;
|
|
}
|
|
|
|
message BatchGetAppAndVerInfoRsp {
|
|
CommonResult result = 1;
|
|
message DATA {
|
|
repeated string appFailList = 1;
|
|
repeated AppInfoRspData appDataList = 2;
|
|
repeated string appVerFailList = 3;
|
|
repeated AppInfoRspData appVerDataList = 4;
|
|
}
|
|
DATA data = 2;
|
|
}
|
|
|
|
message BatchAppsByIdentityReq {
|
|
string sdkKey = 1;
|
|
string source = 2;
|
|
string identityType = 3;
|
|
repeated BatchAppsByIdentityAppsItem apps = 4;
|
|
}
|
|
|
|
message BatchAppsByIdentityAppsItem {
|
|
string appId = 1;
|
|
string identity = 2;
|
|
}
|
|
|
|
message BatchAppsByIdentityRsp {
|
|
CommonResult result = 1;
|
|
message AppListItem {
|
|
string errcode = 1;
|
|
string error = 2;
|
|
AppInfoRspData appInfo = 3;
|
|
string externalAppStatus = 4;
|
|
string appId = 5;
|
|
string identity = 6;
|
|
}
|
|
message DATA {
|
|
repeated AppListItem appList = 1;
|
|
}
|
|
DATA data = 2;
|
|
}
|
|
|
|
message IdentityAppsCheckReq {
|
|
string sdkKey = 1;
|
|
string source = 2;
|
|
string identityType = 3;
|
|
repeated IdentityAppsCheckAppsItem Apps = 4;
|
|
}
|
|
|
|
message IdentityAppsCheckAppsItem {
|
|
string appId = 1;
|
|
string identity = 2;
|
|
}
|
|
|
|
message IdentityAppsCheckRsp {
|
|
CommonResult result = 1;
|
|
message AppListItem {
|
|
string errcode = 1;
|
|
string error = 2;
|
|
message AppListItemData {
|
|
string appId = 1;
|
|
string identity = 2;
|
|
bool identityValid = 3;
|
|
}
|
|
AppListItemData data = 3;
|
|
}
|
|
message DATA {
|
|
repeated AppListItem appList = 1;
|
|
}
|
|
DATA data = 2;
|
|
}
|
|
|
|
//接口六
|
|
message OpenApiGetQRcodeAppVerInfoReq {
|
|
string redisKey = 1;
|
|
string sdkKey = 2;
|
|
}
|
|
|
|
//接口七
|
|
message GetBuildAppInfoReq {
|
|
string type = 1;
|
|
string sdkKey = 2;
|
|
string codeId = 3;
|
|
}
|
|
|
|
message GetBuildAppInfoRsp {
|
|
CommonResult result = 1;
|
|
BuildAppInfo data = 2;
|
|
}
|
|
|
|
message BuildAppInfo {
|
|
string codeId = 1;
|
|
string coreDescription = 2;
|
|
int64 created = 3;
|
|
string createdBy = 4;
|
|
CustomData customData = 5;
|
|
string groupId = 6;
|
|
string groupName = 7;
|
|
string logo = 8;
|
|
string name = 9;
|
|
string version = 10;
|
|
bool isTemp = 11;
|
|
string appId = 12;
|
|
bool needCrt = 13;
|
|
int32 developerStatus = 14;
|
|
WechatLoginInfo wechatLoginInfo = 15;
|
|
repeated string appTag = 16;
|
|
int32 privacySettingType = 17;
|
|
int32 projectType = 18;
|
|
}
|