全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 2022 测试技术 工具
问答 / 问答详情

上传proto文件,保存报错。

ApiPost使用 85次浏览

以下是curl(删掉了Token),方便你们拍错。

curl 'https://workspace.apipost.net/api/apis/create' \
  -H 'authority: workspace.apipost.net' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: zh-CN' \
  -H 'apipost-client-id: 0826b191-72b7-4d38-bd2e-e695dcb40832' \
  -H 'apipost-language: zh-cn' \
  -H 'apipost-machine: 25190f9f358000' \
  -H 'apipost-platform: Mac' \
  -H 'apipost-terminal: client' \
  -H 'apipost-token: ' \
  -H 'apipost-version: 8.0.18' \
  -H 'content-type: application/json' \
  -H 'origin: app://localhost' \
  -H 'rejectunauthorized: false' \
  -H 'sec-ch-ua: "Not)A;Brand";v="24", "Chromium";v="116"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Apipost/8.0.18 Chrome/116.0.5845.228 Electron/26.6.10 Safari/537.36' \
  --data-raw '{"project_id":"343554","target_id":"25217b4ef58022","parent_id":"1880a11c3b0001","target_type":"grpc","name":"chicken","sort":0,"version":0,"mark_id":"1","status":1,"is_changed":1,"is_create":1,"description":"","protos":[{"proto_id":"25218491b84024","proto_name":"Reflection.proto","proto_content":"syntax = \"proto3\";\n\npackage chicken.chicken;\noption go_package = \"./chicken\";\n\nmessage empty{}\nmessage pagination{\n  int32 page = 1;\n  int32 pageSize = 2;\n}\nmessage pong{\n  string msg = 1;\n}\nmessage numRange {\n  int64 min = 1;\n  int64 max = 2;\n\n}\n\n// 小鸡参数配置\nmessage chickenParam {\n  int64 id = 1;\n  int64 singleFeedNum = 2; // 单次喂食饲料数量\n  int64 longTouchFeedRateNum = 3; // 长按喂食饲料每秒消耗数量\n  int64 singleNutritionFeedNum = 4; // 单次喂食营养素数量\n  int64 longTouchNutritionFeedNum = 5; // 长按喂食营养素每秒消耗数量\n  int64 watchAdTimeCountDownNum = 6; //观看广告奖励倒计时\n  numRange stealRange = 7; // 可偷取饲料范围\n  int64 periodMaxStealNum = 8;// 单次储粮桶收集周期可被偷取最大值\n  int64 bucketMax = 9; // 储粮桶上限\n}\n// 孵化期参数配置\nmessage chickenIncubateConfig{\n  int64 id = 1;\n  int64 toNextStageFeedCostNum = 2; // 成长到100%所需饲料\n}\n// 成长期参数配置\nmessage chickenGrowingConfig{\n  int64 id = 1;\n  int64 toNextStageFeedCostNum = 3; // 成长到100%所需饲料\n}\n\n// 下蛋期参数配置\nmessage chickenWorkConfig{\n  int64 id = 1;\n  string nutrition0to39GrowRate = 2; // 0-39营养值时每10g饲料影响进度\n  string nutrition40to59GrowRate = 3; // 40-59营养值时每10g饲料影响进度\n  string nutrition60to79GrowRate = 4; // 60-79营养值时每10g饲料影响进度\n  string nutrition80to100GrowRate = 5; // 80-100营养值时每10g饲料影响进度\n  int64 timeCostFeedRate = 6; // 每消耗1g饲料所需时间\n  int64 chickenFeedingTroughMaxNum = 7; // 鸡食槽上限\n  int64 feedCostNutritionRate = 8;// 每减少1点营养值需要消耗饲料\n  int64 nutrientCostNutritionRate = 9;// 每增加1点营养值需消耗营养素\n}\nmessage gameAwardConfig {\n  int64 type = 1; // 奖品类型: 1饲料  2营养素\n  int64 num = 2; // 奖品数量\n  int64 percentage = 3; // 中奖概率\n}\n// 挂挂乐配置\nmessage scratchTicketConfig {\n  int64 id = 1;\n  int64 conditionOngoingFeedNum = 2; // 连续喂食次数\n  int64 ongoingDays = 3; // 连续触发天数\n  repeated gameAwardConfig gameAwardConfigs = 4; // 奖品配置\n}\n// 转盘配置\nmessage turnplateConfig {\n  int64 id = 1;\n  repeated gameAwardConfig gameAwardConfigs = 2; // 奖品配置\n}\n//  获取配置\nmessage getConfigReq{\n  int64 type = 1;// 1 小鸡参数配置,2孵化期参数配置,3.成长期参数配置,4.下蛋期参数配置,5.呱呱乐配置,6.转盘配置 7.七日签到配置\n}\n\nmessage signConfigItem {\n  int64 feedNum = 1; // 赠送的饲料g数\n  int64  nutritionNum = 2; // 赠送的营养素g数\n  string icon = 3; // 图标\n}\nmessage signConfigReq {\n  int64 id = 1;\n  repeated signConfigItem items = 2; // 每一天的配置\n}\nmessage signConfig {\n  int64 id = 1;\n  repeated signConfigItem items = 2; // 每一天的配置\n}\nmessage paramConfigResp{\n  chickenParam chickenParam = 1;// 小鸡参数配置\n  chickenIncubateConfig chickenGrowUpIncubateConfig = 2; // 孵化期参数配置\n  chickenGrowingConfig chickenGrowingConfig = 3; // 成长期参数配置\n  chickenWorkConfig chickenWorkConfig = 4; // 下蛋期参数配置\n  scratchTicketConfig scratchTicketConfig = 5; // 挂挂乐配置\n  turnplateConfig turnplateConfig = 6; // 挂挂乐配置\n  signConfig signConfig = 7; // 签到配置\n}\n\nservice ChickenConfig {\n  rpc Ping(empty) returns(pong);\n  //  UpsertCommonParamConfig 小鸡参数配置\n  rpc UpsertCommonParamConfig(chickenParam)returns(empty);\n  // UpsertIncubateConfig 孵化期参数配置\n  rpc UpsertIncubateConfig(chickenIncubateConfig)returns(empty);\n  //  UpsertWorkConfig 下蛋期参数配置\n  rpc UpsertWorkConfig(chickenWorkConfig)returns(empty);\n  //  UpsertScratchTicketConfig 挂挂乐配置\n  rpc UpsertScratchTicketConfig(scratchTicketConfig)returns(empty);\n  //  UpsertTurnplateConfig 转盘参数配置\n  rpc UpsertTurnplateConfig(turnplateConfig)returns(empty);\n  //  UpsertGrowingConfig 成长期参数配置\n  rpc UpsertGrowingConfig(chickenGrowingConfig)returns(empty);\n  //  UpsertSignConfig 七日签到参数配置\n  rpc UpsertSignConfig(signConfigReq)returns(empty);\n\n  // GetConfig 获取配置\n  rpc GetConfig(getConfigReq)returns(paramConfigResp);\n}\nmessage editDialItemContent {\n  int32 languageType = 1; // 语言种类,1:英语,2:菲律宾语\n  string content = 2; // 内容\n}\nmessage editDialItemReq {\n  int64 id = 1; // 所属条目的id,新增时不传\n  string title = 2; // 标题\n  int32 stage = 3; // 会话所属阶段\n  int32 dialCondition = 4; // 触发条件\n  repeated editDialItemContent content = 5;\n  bool isForbidden = 6; // 是否禁用\n}\nmessage delItemReq{\n  repeated int64 ids = 1;// 会话ids\n}\nmessage forbiddenItemReq{\n  repeated int64 ids = 1;// 会话ids\n  int32 opType = 2;// 1:禁用会话,2:启用会话\n}\nmessage GetDialItemsReq {\n  string idOrTitle = 1; // 所属条目的id,新增时不传\n  int32 stage = 2; // 会话所属阶段\n  int32 opType = 3; // 0.忽略此条件,1禁用会话,2,启用会话\n  int64 minCreatedAt = 4;\n  int64 maxCreatedAt = 5;\n  pagination page = 6;\n}\nmessage editDialItem {\n  int64 id = 1; // 所属条目的id,新增时不传\n  string title = 2; // 标题\n  int32 stage = 3; // 会话所属阶段\n  int32 dialCondition = 4; // 触发条件\n  bool isForbidden = 5; // 是否禁用\n  repeated editDialItemContent content = 6;\n  int64 createdAt = 7; // 创建时间\n}\nmessage GetDialItemsResp {\n  repeated editDialItem items = 1;\n  int64 total = 2;\n}\nservice ChickenDial{\n  // 新增/编辑会话\n  rpc EditDialItem(editDialItemReq)returns(empty);\n  // 删除会话\n  rpc DelDialItems(delItemReq)returns(empty);\n  // 禁用/启用会话\n  rpc ForbiddenItems(forbiddenItemReq)returns(empty);\n  // 获取会话列表\n  rpc GetDialItems(GetDialItemsReq)returns(GetDialItemsResp);\n}\nmessage InitChickenReq {\n  int64 userID = 1; // 用户ID\n}\nmessage InitChickenResp {\n  //    int64 userID = 1; // 用户ID\n}\n\nmessage OpFeedStoreReq {\n  int64 userID = 1; // 用户ID\n  int64 num = 2; // 增加的数量\n  string opID = 3; // 操作ID,用于去重\n  string comment = 4; // 说明\n}\nmessage AddNutritionStoreReq {\n  int64 userID = 1; // 用户ID\n  int64 num = 2; // 增加的数量\n  string opID = 3; // 操作ID,用于去重\n  string comment = 4; // 说明\n}\nmessage GetChickenInfoReq {\n  int64 chickenID = 1; // 小鸡ID\n}\nmessage GetChickenInfoResp {\n  int64 chickenID = 1; // 小鸡ID\n  int64 userID = 2;// 用户ID\n  string name = 3; // 小鸡名字\n  int64 feedSlotValue = 4; // 鸡食槽内的饲料数量\n  int64 stage = 5; // 所处阶段,1:孵化期,2.成长期,3.下蛋期\n  bool isDie = 6; // 是否死亡\n  int64 feedCostRemainSec = 7; // 饲料消耗剩余时间\n  int64 nutritionValue = 8; // 营养值\n  int64 feedStoreNum = 9; // 饲料仓库数量\n  int64 nutritionStoreNum = 10; // 营养素仓库数量\n  int64 progress = 11; // 进度\n}\nmessage GetChickenEggInfoReq {\n  int64 userID = 1; // 用户ID\n}\nmessage GetChickenEggInfoResp {\n  int64 userID = 1; // 用户ID\n  int64 allEggsNum = 2; // 累计下蛋数量\n  int64 allEggsOrderNum = 3; // 累计收货数量\n  int64 currentNum = 4; // 当前可领取数量\n  int64 obtainNum = 5; // 已领取数量\n}\nmessage GetChickenEggOrdersReq{\n  int64 userID = 1; // 获取ID,c端获取\n  int64 orderID = 2; // 订单ID\n  string userNameOrID = 3; // 用户昵称或者ID\n  string receiveNameOrPhone = 4; // 收货人/收货电话\n  int32 orderStatus = 5; // 订单状态\n  int64 createOrderTimeMin = 6;\n  int64 createOrderTimeMax = 7;\n  pagination page = 8;\n}\nmessage ChickenEggOrder{\n  int64 orderID = 1; // 订单ID\n  int64 createTime = 2;// 订单创建时间\n  string nickName = 3; // 用户昵称\n  string receiveName = 4; // 收货人名称\n  string province = 5; // 省\n  string city = 6; // 市\n  string district = 7; // 区\n  string detailAddr = 8; // 详细地址\n  int64 eggsNum = 9; // 鸡蛋数量\n  int32 status = 10;// 订单状态,1订单创建待发货,2已发货 3已送达\n  int64 sendOutTime = 11; // 发货时间\n  int64 sendOffTime = 12; // 送达时间\n  int32 planSendOffTime = 13;// 计划送达时间\n}\nmessage GetChickenEggOrdersResp{\n  repeated ChickenEggOrder orders = 1;\n  int64 total = 2;\n}\nmessage CollectFeedBucketToStoreReq {\n  int64 userID = 1; // 用户ID\n  int64 chickenID = 2; // 小鸡ID\n}\nmessage CollectFeedBucketToStoreResp {\n  int64 StoreNum = 1; // 仓库中的饲料数量\n}\nmessage SetChickenNameReq{\n  int64 chickenID = 1; // 小鸡id\n  string name = 2; // 名字\n}\nmessage CreateEggsOrderReq{\n  int64 userID = 1;\n  string nickName = 2; // 用户昵称\n  string receiveName = 3; // 收货人名称\n  string province = 4; // 省\n  string city = 5; // 市\n  string district = 6; // 区\n  string detailAddr = 7; // 详细地址\n  int64 eggsNum = 8; // 鸡蛋数量\n}\nmessage GetObtainEggInfoReq {\n  int64 userID = 1; // 用户ID\n}\nmessage GetObtainEggInfoResp{\n  int64 userID = 1; // 用户ID\n  int64 allEggsNum = 2; // 累计下蛋数量\n  int64 allEggsOrderNum = 3; // 累计收货数量\n  int64 currentNum = 4; // 当前可领取数量\n  int64 obtainNum = 5; // 已领取数量\n  int64 expireNum = 6; // 即将过期数量\n  int64 expireSecNum = 7; // 过期时间\n\n}\nmessage UpdateEggOrderStatusReq {\n  int64 orderID = 1;\n  int32 status = 2; // 订单状态\n}\nmessage FeedChickenReq {\n  int64 userID = 1; // 用户ID\n  int64 chickenID = 2; // 小鸡id\n  int64 num = 3; // 喂饲料克数\n  string uniqueID = 4; // 唯一标识\n}\n\nmessage StealFeedReq {\n  int64 stealUserID = 1; // 偷取者用户ID\n  int64 beStealUserID = 2; // 被偷取者用户ID\n}\nmessage StealFeedResp {\n  int64 stealUserStoreValue = 1; // 偷取者的仓库饲料值\n  int64 beStealUserBucketValue = 2; // 被偷取者用户饲料桶的值\n}\n\nmessage GetOtherChickenInfoReq {\n  int64 userID = 1;\n}\nmessage GetOtherChickenInfoResp {\n  int64 userID = 1;\n}\nservice chicken {\n  //  初始化用户\n  rpc InitChicken(InitChickenReq)returns(InitChickenResp);\n  //  增加饲料(任务,活动,奖励)\n  rpc AddFeedStore(OpFeedStoreReq)returns(empty);\n  //  增加营养素(任务,活动,奖励)\n  rpc AddNutritionStore(AddNutritionStoreReq)returns(empty);\n  //  减少储粮桶中的饲料\n  rpc SubFeedBucket(OpFeedStoreReq)returns(empty);\n  // 收集储粮桶中的饲料\n  rpc CollectFeedBucketToStore(CollectFeedBucketToStoreReq)returns(CollectFeedBucketToStoreResp);\n  // 设置小鸡姓名\n  rpc SetChickenName(SetChickenNameReq)returns(empty);\n  // 领取鸡蛋前,获取鸡蛋信息\n  rpc GetObtainEggInfo(GetObtainEggInfoReq)returns(GetObtainEggInfoResp);\n  //  生成鸡蛋订单\n  rpc CreateEggsOrder(CreateEggsOrderReq)returns(empty);\n  //  获取小鸡信息\n  rpc GetChickenInfo(GetChickenInfoReq)returns(GetChickenInfoResp);\n  //  获取鸡蛋信息\n  rpc GetChickenEggInfo(GetChickenEggInfoReq)returns(GetChickenEggInfoResp);\n  // 获取鸡蛋收货记录\n  rpc GetChickenEggOrders(GetChickenEggOrdersReq)returns(GetChickenEggOrdersResp);\n  // 更改鸡蛋订单状态\n  rpc UpdateEggOrderStatus(UpdateEggOrderStatusReq)returns(empty);\n  // 喂饲料\n  rpc FeedTheFeed(FeedChickenReq)returns(empty);\n  // 喂营养素\n  rpc FeedTheNutrition(FeedChickenReq)returns(empty);\n}","proto_path":"","include_dirs":[],"include_files":[],"url":"","services":[{"service_name":"chicken.chicken.ChickenConfig","service_id":"25218491f84025","methods":[{"grpc_method_id":"25218491f84026","name":"Ping","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492758023","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84027","name":"UpsertCommonParamConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492758024","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84028","name":"UpsertIncubateConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492758025","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84029","name":"UpsertWorkConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58026","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8402a","name":"UpsertScratchTicketConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58027","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8402b","name":"UpsertTurnplateConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58028","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8402c","name":"UpsertGrowingConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58029","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8402d","name":"UpsertSignConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5802a","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8402e","name":"GetConfig","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5802b","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}}]},{"service_name":"chicken.chicken.ChickenDial","service_id":"25218491f8402f","methods":[{"grpc_method_id":"25218491f84030","name":"EditDialItem","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5802c","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84031","name":"DelDialItems","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5802d","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84032","name":"ForbiddenItems","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5802e","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84033","name":"GetDialItems","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5802f","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}}]},{"service_name":"chicken.chicken.chicken","service_id":"25218491f84034","methods":[{"grpc_method_id":"25218491f84035","name":"InitChicken","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58030","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84036","name":"AddFeedStore","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58031","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84037","name":"AddNutritionStore","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58032","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84038","name":"SubFeedBucket","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58033","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84039","name":"CollectFeedBucketToStore","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58034","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8403a","name":"SetChickenName","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58035","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8403b","name":"GetObtainEggInfo","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58036","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8403c","name":"CreateEggsOrder","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58037","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8403d","name":"GetChickenInfo","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58038","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8403e","name":"GetChickenEggInfo","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b58039","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f8403f","name":"GetChickenEggOrders","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5803a","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84040","name":"UpdateEggOrderStatus","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5803b","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84041","name":"FeedTheFeed","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5803c","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}},{"grpc_method_id":"25218491f84042","name":"FeedTheNutrition","url":"","request_stream":-1,"response_stream":-1,"tls":-1,"ssl":-1,"reconnect_num":0,"request":{"metadata":{"parameter":[]},"message":[{"param_id":"25218492b5803d","name":"自定义参数","raw":"","raw_parameter":[]}]},"response":{"example":[{"example_id":"1","raw":"","raw_parameter":[],"expect":{"name":"成功","is_default":1,"code":"200","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}},{"example_id":"2","raw":"","raw_parameter":[],"expect":{"name":"失败","is_default":-1,"code":"404","content_type":"json","verify_type":"schema","mock":"","schema":{"type":"object","properties":{}}}}]}}]}],"proto_is_cloud":-1}],"request":{"description":""},"is_force":-1,"is_deleted":-1,"is_conflicted":-1,"saveLoading":true}' \
  --compressed

上传proto文件,保存报错。

| 0 收藏
  • hsy
  • 2024-07-18 提问

1 个回答

服务器压力过大 在修复

Apipost 私有化火热进行中

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!