github.com/infraboard/keyauth@v0.8.1/apps/endpoint/pb/request.proto (about) 1 syntax = "proto3"; 2 3 package infraboard.keyauth.endpoint; 4 option go_package = "github.com/infraboard/keyauth/apps/endpoint"; 5 6 import "github.com/infraboard/mcube/pb/page/page.proto"; 7 import "github.com/infraboard/mcube/pb/http/entry.proto"; 8 9 import "apps/endpoint/pb/enum.proto"; 10 11 // RegistryRequest 服务注册请求 12 message RegistryRequest { 13 // @gotags: json:"client_id" validate:"required" 14 string client_id = 1; 15 // @gotags: json:"client_secret" validate:"required" 16 string client_secret = 2; 17 // @gotags: json:"version" validate:"required,lte=32" 18 string version = 3; 19 // @gotags: json:"entries" 20 repeated infraboard.mcube.http.Entry entries = 4; 21 } 22 23 // RegistryReponse todo 24 message RegistryResponse { 25 // @gotags: json:"message" 26 string message = 1; 27 } 28 29 // DescribeEndpointRequest todo 30 message DescribeEndpointRequest { 31 // @gotags: json:"id" 32 string id = 1; 33 } 34 35 // QueryEndpointRequest 查询应用列表 36 message QueryEndpointRequest { 37 // @gotags: json:"page" 38 infraboard.mcube.page.PageRequest page = 1; 39 // @gotags: json:"service_ids" 40 repeated string service_ids = 2; 41 // @gotags: json:"path" 42 string path = 3; 43 // @gotags: json:"method" 44 string method = 4; 45 // @gotags: json:"function_name" 46 string function_name = 5; 47 // @gotags: json:"resources" 48 repeated string resources = 6; 49 // @gotags: json:"labels" 50 map<string, string> labels = 7; 51 // @gotags: json:"permission_enable" 52 BoolQuery permission_enable = 8; 53 } 54 55 // DeleteEndpointRequest todo 56 message DeleteEndpointRequest { 57 // @gotags: json:"service_id" 58 string service_id = 1; 59 } 60 61 // QueryResourceRequest todo 62 message QueryResourceRequest { 63 // @gotags: json:"page" 64 infraboard.mcube.page.PageRequest page = 1; 65 // @gotags: json:"service_ids" 66 repeated string service_ids = 2; 67 // @gotags: json:"resources" 68 repeated string resources = 3; 69 // @gotags: json:"permission_enable" 70 BoolQuery permission_enable = 4; 71 }