|
@@ -27,7 +27,9 @@ type GetCodebyImgPathReq struct {
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Imgpath string `protobuf:"bytes,1,opt,name=imgpath,proto3" json:"imgpath,omitempty"`
|
|
Imgpath string `protobuf:"bytes,1,opt,name=imgpath,proto3" json:"imgpath,omitempty"`
|
|
- Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
|
|
|
|
|
|
+ Stype string `protobuf:"bytes,2,opt,name=stype,proto3" json:"stype,omitempty"`
|
|
|
|
+ Head string `protobuf:"bytes,3,opt,name=head,proto3" json:"head,omitempty"`
|
|
|
|
+ Cookie string `protobuf:"bytes,4,opt,name=cookie,proto3" json:"cookie,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
func (x *GetCodebyImgPathReq) Reset() {
|
|
func (x *GetCodebyImgPathReq) Reset() {
|
|
@@ -69,6 +71,13 @@ func (x *GetCodebyImgPathReq) GetImgpath() string {
|
|
return ""
|
|
return ""
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (x *GetCodebyImgPathReq) GetStype() string {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Stype
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
func (x *GetCodebyImgPathReq) GetHead() string {
|
|
func (x *GetCodebyImgPathReq) GetHead() string {
|
|
if x != nil {
|
|
if x != nil {
|
|
return x.Head
|
|
return x.Head
|
|
@@ -76,12 +85,21 @@ func (x *GetCodebyImgPathReq) GetHead() string {
|
|
return ""
|
|
return ""
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (x *GetCodebyImgPathReq) GetCookie() string {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Cookie
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
type GetCodebyImgPathResp struct {
|
|
type GetCodebyImgPathResp struct {
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
|
|
|
|
|
+ Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
|
+ Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
|
|
|
|
+ Cookie string `protobuf:"bytes,3,opt,name=cookie,proto3" json:"cookie,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
func (x *GetCodebyImgPathResp) Reset() {
|
|
func (x *GetCodebyImgPathResp) Reset() {
|
|
@@ -116,9 +134,23 @@ func (*GetCodebyImgPathResp) Descriptor() ([]byte, []int) {
|
|
return file_proto_code_proto_rawDescGZIP(), []int{1}
|
|
return file_proto_code_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
}
|
|
|
|
|
|
-func (x *GetCodebyImgPathResp) GetResult() string {
|
|
|
|
|
|
+func (x *GetCodebyImgPathResp) GetCode() string {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Code
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *GetCodebyImgPathResp) GetHead() string {
|
|
|
|
+ if x != nil {
|
|
|
|
+ return x.Head
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *GetCodebyImgPathResp) GetCookie() string {
|
|
if x != nil {
|
|
if x != nil {
|
|
- return x.Result
|
|
|
|
|
|
+ return x.Cookie
|
|
}
|
|
}
|
|
return ""
|
|
return ""
|
|
}
|
|
}
|
|
@@ -127,21 +159,26 @@ var File_proto_code_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_proto_code_proto_rawDesc = []byte{
|
|
var file_proto_code_proto_rawDesc = []byte{
|
|
0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
- 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x13, 0x47, 0x65, 0x74,
|
|
|
|
|
|
+ 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x13, 0x47, 0x65, 0x74,
|
|
0x43, 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71,
|
|
0x43, 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71,
|
|
0x12, 0x18, 0x0a, 0x07, 0x69, 0x6d, 0x67, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x12, 0x18, 0x0a, 0x07, 0x69, 0x6d, 0x67, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
- 0x09, 0x52, 0x07, 0x69, 0x6d, 0x67, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x65,
|
|
|
|
- 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x65, 0x61, 0x64, 0x22, 0x2e,
|
|
|
|
- 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61,
|
|
|
|
- 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
|
|
|
|
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0x56,
|
|
|
|
- 0x0a, 0x07, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x4b, 0x0a, 0x10, 0x47, 0x65, 0x74,
|
|
|
|
- 0x43, 0x6f, 0x64, 0x65, 0x42, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x2e,
|
|
|
|
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49,
|
|
|
|
- 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
- 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61,
|
|
|
|
- 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x42, 0x08, 0x5a, 0x06, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
|
+ 0x09, 0x52, 0x07, 0x69, 0x6d, 0x67, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74,
|
|
|
|
+ 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x79, 0x70, 0x65,
|
|
|
|
+ 0x12, 0x12, 0x0a, 0x04, 0x68, 0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
|
|
+ 0x68, 0x65, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x04,
|
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x22, 0x56, 0x0a, 0x14,
|
|
|
|
+ 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68,
|
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
+ 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x65, 0x61, 0x64,
|
|
|
|
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x65, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06,
|
|
|
|
+ 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f,
|
|
|
|
+ 0x6f, 0x6b, 0x69, 0x65, 0x32, 0x56, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12,
|
|
|
|
+ 0x4b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x79, 0x49, 0x6d, 0x67, 0x50,
|
|
|
|
+ 0x61, 0x74, 0x68, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43,
|
|
|
|
+ 0x6f, 0x64, 0x65, 0x62, 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a,
|
|
|
|
+ 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x62,
|
|
|
|
+ 0x79, 0x49, 0x6d, 0x67, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x42, 0x08, 0x5a, 0x06,
|
|
|
|
+ 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
}
|
|
|
|
|
|
var (
|
|
var (
|