Преглед изворни кода

feature: Cloudflare支持原生创建域名与更改付费计划API

世祺 пре 9 месеци
родитељ
комит
190a665e4a
1 измењених фајлова са 22 додато и 0 уклоњено
  1. 22 0
      zone.proto

+ 22 - 0
zone.proto

@@ -17,6 +17,8 @@ service ZoneCloudflare {
   rpc ListZones(ListZonesRequestCloudflare) returns (ZonesList){}
   rpc ListZonesByAccountId(ListZonesByAccountIdRequestCloudflare) returns (ZonesList){}
   rpc ActivationCheck(ActivationCheckRequestCloudflare) returns (ActivationCheckReplyCloudflare){}
+  rpc CreateZone (CreateZoneRequestCloudflare) returns (CreateZoneReplyCloudflare){}
+  rpc SetZonePlan (SetZonePlanRequestCloudflare)returns (SetZonePlanReplyCloudflare){}
 
   //PageRule CURD
   rpc ListPageRule(ListPageRuleRequestCloudflare) returns (PageRuleList){}
@@ -117,6 +119,26 @@ message DeleteZoneReplyCloudflare{
   string id = 2;
 }
 
+message CreateZoneRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string accountId = 3;
+  string domain = 4;
+}
+message CreateZoneReplyCloudflare{
+  bool success = 1;
+  string id = 2;
+}
+message SetZonePlanRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  string zonePlan = 4;
+}
+message SetZonePlanReplyCloudflare{
+  bool success = 1;
+}
+
 
 message ActivationCheckRequestCloudflare {
   string apiKey = 1;