@@ -26,11 +26,13 @@ type CreateHTTPPageRequest struct {
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
StatusList [ ] string ` protobuf:"bytes,1,rep,name=statusList,proto3" json:"statusList,omitempty" `
BodyType string ` protobuf:"bytes,5,opt,name=bodyType,proto3" json:"bodyType,omitempty" `
Url string ` protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty" `
Body string ` protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty" `
NewStatus int32 ` protobuf:"varint,3,opt,name=newStatus,proto3" json:"newStatus,omitempty" `
StatusList [ ] string ` protobuf:"bytes,1,rep,name=statusList,proto3" json:"statusList,omitempty" ` // 状态码列表
BodyType string ` protobuf:"bytes,5,opt,name=bodyType,proto3" json:"bodyType,omitempty" ` // 页面类型: html|url|redirectURL
Url string ` protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty" ` // 读取或者跳转的URL
Body string ` protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty" ` // HTML内容
NewStatus int32 ` protobuf:"varint,3,opt,name=newStatus,proto3" json:"newStatus,omitempty" ` // 新的状态码
ExceptURLPatternsJSON [ ] byte ` protobuf:"bytes,6,opt,name=exceptURLPatternsJSON,proto3" json:"exceptURLPatternsJSON,omitempty" ` // 例外URL列表
OnlyURLPatternsJSON [ ] byte ` protobuf:"bytes,7,opt,name=onlyURLPatternsJSON,proto3" json:"onlyURLPatternsJSON,omitempty" ` // 限制URL列表
}
func ( x * CreateHTTPPageRequest ) Reset ( ) {
@@ -100,6 +102,20 @@ func (x *CreateHTTPPageRequest) GetNewStatus() int32 {
return 0
}
func ( x * CreateHTTPPageRequest ) GetExceptURLPatternsJSON ( ) [ ] byte {
if x != nil {
return x . ExceptURLPatternsJSON
}
return nil
}
func ( x * CreateHTTPPageRequest ) GetOnlyURLPatternsJSON ( ) [ ] byte {
if x != nil {
return x . OnlyURLPatternsJSON
}
return nil
}
type CreateHTTPPageResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
@@ -153,12 +169,14 @@ type UpdateHTTPPageRequest struct {
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
HttpPageId int64 ` protobuf:"varint,1,opt,name=httpPageId,proto3" json:"httpPageId,omitempty" `
StatusList [ ] string ` protobuf:"bytes,2,rep,name=statusList,proto3" json:"statusList,omitempty" `
BodyType string ` protobuf:"bytes,6,opt,name=bodyType,proto3" json:"bodyType,omitempty" `
Url string ` protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty" `
Body string ` protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty" `
NewStatus int32 ` protobuf:"varint,4,opt,name=newStatus,proto3" json:"newStatus,omitempty" `
HttpPageId int64 ` protobuf:"varint,1,opt,name=httpPageId,proto3" json:"httpPageId,omitempty" `
StatusList [ ] string ` protobuf:"bytes,2,rep,name=statusList,proto3" json:"statusList,omitempty" `
BodyType string ` protobuf:"bytes,6,opt,name=bodyType,proto3" json:"bodyType,omitempty" ` // 页面类型: html|url|redirectURL
Url string ` protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty" `
Body string ` protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty" `
NewStatus int32 ` protobuf:"varint,4,opt,name=newStatus,proto3" json:"newStatus,omitempty" `
ExceptURLPatternsJSON [ ] byte ` protobuf:"bytes,7,opt,name=exceptURLPatternsJSON,proto3" json:"exceptURLPatternsJSON,omitempty" ` // 例外URL列表
OnlyURLPatternsJSON [ ] byte ` protobuf:"bytes,8,opt,name=onlyURLPatternsJSON,proto3" json:"onlyURLPatternsJSON,omitempty" ` // 限制URL列表
}
func ( x * UpdateHTTPPageRequest ) Reset ( ) {
@@ -235,6 +253,20 @@ func (x *UpdateHTTPPageRequest) GetNewStatus() int32 {
return 0
}
func ( x * UpdateHTTPPageRequest ) GetExceptURLPatternsJSON ( ) [ ] byte {
if x != nil {
return x . ExceptURLPatternsJSON
}
return nil
}
func ( x * UpdateHTTPPageRequest ) GetOnlyURLPatternsJSON ( ) [ ] byte {
if x != nil {
return x . OnlyURLPatternsJSON
}
return nil
}
// 查找单个Page配置
type FindEnabledHTTPPageConfigRequest struct {
state protoimpl . MessageState
@@ -336,7 +368,7 @@ var file_service_http_page_proto_rawDesc = []byte{
0x0a , 0x17 , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x5f , 0x68 , 0x74 , 0x74 , 0x70 , 0x5f , 0x70 ,
0x61 , 0x67 , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x02 , 0x70 , 0x62 , 0x1a , 0x19 , 0x6d ,
0x6f , 0x64 , 0x65 , 0x6c , 0x73 , 0x2f , 0x72 , 0x70 , 0x63 , 0x5f , 0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 ,
0x65 , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0x97 , 0x01 , 0x0a , 0x15 , 0x43 , 0x72 , 0x65 ,
0x65 , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0xff , 0x01 , 0x0a , 0x15 , 0x43 , 0x72 , 0x65 ,
0x61 , 0x74 , 0x65 , 0x48 , 0x54 , 0x54 , 0x50 , 0x50 , 0x61 , 0x67 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 ,
0x73 , 0x74 , 0x12 , 0x1e , 0x0a , 0x0a , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x4c , 0x69 , 0x73 , 0x74 ,
0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x0a , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x4c , 0x69 ,
@@ -346,22 +378,35 @@ var file_service_http_page_proto_rawDesc = []byte{
0x12 , 0x12 , 0x0a , 0x04 , 0x62 , 0x6f , 0x64 , 0x79 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x04 ,
0x62 , 0x6f , 0x64 , 0x79 , 0x12 , 0x1c , 0x0a , 0x09 , 0x6e , 0x65 , 0x77 , 0x53 , 0x74 , 0x61 , 0x74 , 0x75 ,
0x73 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x09 , 0x6e , 0x65 , 0x77 , 0x53 , 0x74 , 0x61 , 0x74 ,
0x75 , 0x73 , 0x2 2 , 0x38 , 0x0a , 0x16 , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x48 , 0x54 , 0x5 4 , 0x50 ,
0x50 , 0x61 , 0x6 7 , 0x65 , 0x5 2 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x1e , 0x0a , 0x0a ,
0x68 , 0x74 , 0x74 , 0x70 , 0x50 , 0x61 , 0x67 , 0x65 , 0x49 , 0x64 , 0x18 , 0x01 , 0x2 0 , 0x0 1 , 0x28 , 0x03 ,
0x52 , 0x0a , 0x68 , 0x74 , 0x7 4 , 0x70 , 0x50 , 0x61 , 0x67 , 0x65 , 0x49 , 0x64 , 0x22 , 0xb7 , 0x01 , 0x0a ,
0x1 5 , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x48 , 0x54 , 0x54 , 0x50 , 0x50 , 0x61 , 0x67 , 0x65 , 0x52 ,
0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x1e , 0x0a , 0x0a , 0x68 , 0x74 , 0x74 , 0x70 , 0x50 , 0x61 ,
0x6 7 , 0x65 , 0x49 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x03 , 0x5 2 , 0x0a , 0x68 , 0x74 , 0x7 4 , 0x70 ,
0x50 , 0x61 , 0x6 7 , 0x65 , 0x49 , 0x6 4 , 0x12 , 0x1e , 0x0a , 0x0a , 0x73 , 0x74 , 0x61 , 0x74 , 0x7 5 , 0x73 ,
0x4c , 0x69 , 0x73 , 0x74 , 0x18 , 0x02 , 0x2 0 , 0x03 , 0x2 8 , 0x09 , 0x52 , 0x0a , 0x73 , 0x74 , 0x61 , 0x74 ,
0x75 , 0x73 , 0x4c , 0x69 , 0x73 , 0x74 , 0x1 2 , 0x1a , 0x0a , 0x08 , 0x62 , 0x6f , 0x6 4 , 0x79 , 0x54 , 0x79 ,
0x70 , 0x65 , 0x18 , 0x0 6 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x62 , 0x6f , 0x64 , 0x79 , 0x54 , 0x79 ,
0x70 , 0x6 5 , 0x12 , 0x1 0 , 0x0a , 0x03 , 0x7 5 , 0x7 2 , 0x6c , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x03 , 0x75 , 0x72 , 0x6c , 0x12 , 0x12 , 0x0a , 0x04 , 0x62 , 0x6f , 0x6 4 , 0x79 , 0x18 , 0x05 , 0x20 , 0x01 ,
0x28 , 0x09 , 0x52 , 0x04 , 0x62 , 0x6f , 0x6 4 , 0x79 , 0x12 , 0x1c , 0x0a , 0x09 , 0x6e , 0x65 , 0x77 , 0x53 ,
0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x09 , 0x6e , 0x65 , 0x77 ,
0x53 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x22 , 0x42 , 0x0a , 0x20 , 0x46 , 0x69 , 0x6e , 0x6 4 , 0x45 , 0x6e ,
0x75 , 0x73 , 0x1 2 , 0x34 , 0x0a , 0x15 , 0x65 , 0x78 , 0x63 , 0x65 , 0x70 , 0x74 , 0x55 , 0x52 , 0x4c , 0x50 ,
0x61 , 0x74 , 0x74 , 0x65 , 0x7 2 , 0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x18 , 0x06 , 0x20 , 0x01 , 0x28 ,
0x0c , 0x52 , 0x15 , 0x65 , 0x78 , 0x63 , 0x65 , 0x70 , 0x7 4 , 0x55 , 0x52 , 0x4c , 0x5 0 , 0x6 1 , 0x74 , 0x74 ,
0x6 5 , 0x72 , 0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x12 , 0x30 , 0x0a , 0x13 , 0x6f , 0x6e , 0x6c , 0x79 ,
0x5 5 , 0x52 , 0x4c , 0x50 , 0x61 , 0x74 , 0x74 , 0x65 , 0x72 , 0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x18 ,
0x07 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x13 , 0x6f , 0x6e , 0x6c , 0x79 , 0x55 , 0x52 , 0x4c , 0x50 , 0x61 ,
0x74 , 0x74 , 0x65 , 0x72 , 0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x2 2 , 0x38 , 0x0a , 0x16 , 0x43 , 0x72 ,
0x6 5 , 0x61 , 0x74 , 0x65 , 0x48 , 0x5 4 , 0x54 , 0x50 , 0x5 0 , 0x61 , 0x6 7 , 0x65 , 0x52 , 0x6 5 , 0x73 , 0x70 ,
0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x1e , 0x0a , 0x0a , 0x6 8 , 0x74 , 0x74 , 0x7 0 , 0x50 , 0x61 , 0x67 , 0x65 ,
0x49 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x0a , 0x68 , 0x74 , 0x7 4 , 0x70 , 0x50 , 0x61 ,
0x6 7 , 0x65 , 0x49 , 0x64 , 0x22 , 0x9f , 0x0 2 , 0x0a , 0x1 5 , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x6 5 , 0x48 ,
0x54 , 0x54 , 0x50 , 0x5 0 , 0x61 , 0x67 , 0x6 5 , 0x5 2 , 0x65 , 0x7 1 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x1e ,
0x0a , 0x0a , 0x68 , 0x74 , 0x74 , 0x70 , 0x5 0 , 0x61 , 0x67 , 0x65 , 0x49 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 ,
0x28 , 0x03 , 0x52 , 0x0a , 0x68 , 0x74 , 0x7 4 , 0x70 , 0x50 , 0x6 1 , 0x67 , 0x65 , 0x49 , 0x64 , 0x12 , 0x1e ,
0x0a , 0x0a , 0x73 , 0x74, 0x61 , 0x74 , 0x75 , 0x73 , 0x4c , 0x69 , 0x73 , 0x74 , 0x18 , 0x02 , 0x20 , 0x03 ,
0x28 , 0x09 , 0x52 , 0x0a , 0x73 , 0x74 , 0x61 , 0x7 4 , 0x75 , 0x73 , 0x4c , 0x69 , 0x73 , 0x7 4 , 0x12 , 0x1a ,
0x0a , 0x08 , 0x62 , 0x6f , 0x64 , 0x79 , 0x54 , 0x79 , 0x70 , 0x65 , 0x18 , 0x06 , 0x20 , 0x01 , 0x28 , 0x09 ,
0x52 , 0x08 , 0x62 , 0x6f , 0x64 , 0x79 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x10 , 0x0a , 0x03 , 0x75 , 0x72 ,
0x6c , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x75 , 0x72 , 0x6c , 0x12 , 0x12 , 0x0a , 0x04 ,
0x62 , 0x6f , 0x64 , 0x79 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x04 , 0x62 , 0x6f , 0x64 , 0x79 ,
0x12 , 0x1c , 0x0a , 0x09 , 0x6e , 0x65 , 0x77 , 0x53 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x18 , 0x04 , 0x20 ,
0x01 , 0x28 , 0x05 , 0x52 , 0x09 , 0x6e , 0x65 , 0x77 , 0x53 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x12 , 0x34 ,
0x0a , 0x15 , 0x65 , 0x78 , 0x63 , 0x65 , 0x70 , 0x74 , 0x55 , 0x52 , 0x4c , 0x50 , 0x61 , 0x74 , 0x74 , 0x65 ,
0x72 , 0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x15 , 0x65 ,
0x78 , 0x63 , 0x65 , 0x70 , 0x74 , 0x55 , 0x52 , 0x4c , 0x50 , 0x61 , 0x74 , 0x74 , 0x65 , 0x72 , 0x6e , 0x73 ,
0x4a , 0x53 , 0x4f , 0x4e , 0x12 , 0x30 , 0x0a , 0x13 , 0x6f , 0x6e , 0x6c , 0x79 , 0x55 , 0x52 , 0x4c , 0x50 ,
0x61 , 0x74 , 0x74 , 0x65 , 0x72 , 0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x18 , 0x08 , 0x20 , 0x01 , 0x28 ,
0x0c , 0x52 , 0x13 , 0x6f , 0x6e , 0x6c , 0x79 , 0x55 , 0x52 , 0x4c , 0x50 , 0x61 , 0x74 , 0x74 , 0x65 , 0x72 ,
0x6e , 0x73 , 0x4a , 0x53 , 0x4f , 0x4e , 0x22 , 0x42 , 0x0a , 0x20 , 0x46 , 0x69 , 0x6e , 0x64 , 0x45 , 0x6e ,
0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x48 , 0x54 , 0x54 , 0x50 , 0x50 , 0x61 , 0x67 , 0x65 , 0x43 , 0x6f , 0x6e ,
0x66 , 0x69 , 0x67 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x1e , 0x0a , 0x0a , 0x68 , 0x74 ,
0x74 , 0x70 , 0x50 , 0x61 , 0x67 , 0x65 , 0x49 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x0a ,