WCommonResult.pb.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.19.4
  5. // source: wecom/WCommonResult.proto
  6. package wecom
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type CommonResultMessage struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. WxId int64 `protobuf:"varint,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
  23. Success bool `protobuf:"varint,2,opt,name=Success,proto3" json:"Success,omitempty"` // 是否成功
  24. Code int32 `protobuf:"varint,3,opt,name=Code,proto3" json:"Code,omitempty"` // 错误码 Success = true 忽略
  25. ErrMsg string `protobuf:"bytes,4,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` // 错误内容描述
  26. unknownFields protoimpl.UnknownFields
  27. sizeCache protoimpl.SizeCache
  28. }
  29. func (x *CommonResultMessage) Reset() {
  30. *x = CommonResultMessage{}
  31. mi := &file_wecom_WCommonResult_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. func (x *CommonResultMessage) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*CommonResultMessage) ProtoMessage() {}
  39. func (x *CommonResultMessage) ProtoReflect() protoreflect.Message {
  40. mi := &file_wecom_WCommonResult_proto_msgTypes[0]
  41. if x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use CommonResultMessage.ProtoReflect.Descriptor instead.
  51. func (*CommonResultMessage) Descriptor() ([]byte, []int) {
  52. return file_wecom_WCommonResult_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *CommonResultMessage) GetWxId() int64 {
  55. if x != nil {
  56. return x.WxId
  57. }
  58. return 0
  59. }
  60. func (x *CommonResultMessage) GetSuccess() bool {
  61. if x != nil {
  62. return x.Success
  63. }
  64. return false
  65. }
  66. func (x *CommonResultMessage) GetCode() int32 {
  67. if x != nil {
  68. return x.Code
  69. }
  70. return 0
  71. }
  72. func (x *CommonResultMessage) GetErrMsg() string {
  73. if x != nil {
  74. return x.ErrMsg
  75. }
  76. return ""
  77. }
  78. var File_wecom_WCommonResult_proto protoreflect.FileDescriptor
  79. const file_wecom_WCommonResult_proto_rawDesc = "" +
  80. "\n" +
  81. "\x19wecom/WCommonResult.proto\x12\x10Im.Scrm.Ww.Proto\"o\n" +
  82. "\x13CommonResultMessage\x12\x12\n" +
  83. "\x04WxId\x18\x01 \x01(\x03R\x04WxId\x12\x18\n" +
  84. "\aSuccess\x18\x02 \x01(\bR\aSuccess\x12\x12\n" +
  85. "\x04Code\x18\x03 \x01(\x05R\x04Code\x12\x16\n" +
  86. "\x06ErrMsg\x18\x04 \x01(\tR\x06ErrMsgB\x13Z\x11./workphone/wecomb\x06proto3"
  87. var (
  88. file_wecom_WCommonResult_proto_rawDescOnce sync.Once
  89. file_wecom_WCommonResult_proto_rawDescData []byte
  90. )
  91. func file_wecom_WCommonResult_proto_rawDescGZIP() []byte {
  92. file_wecom_WCommonResult_proto_rawDescOnce.Do(func() {
  93. file_wecom_WCommonResult_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WCommonResult_proto_rawDesc), len(file_wecom_WCommonResult_proto_rawDesc)))
  94. })
  95. return file_wecom_WCommonResult_proto_rawDescData
  96. }
  97. var file_wecom_WCommonResult_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  98. var file_wecom_WCommonResult_proto_goTypes = []any{
  99. (*CommonResultMessage)(nil), // 0: Im.Scrm.Ww.Proto.CommonResultMessage
  100. }
  101. var file_wecom_WCommonResult_proto_depIdxs = []int32{
  102. 0, // [0:0] is the sub-list for method output_type
  103. 0, // [0:0] is the sub-list for method input_type
  104. 0, // [0:0] is the sub-list for extension type_name
  105. 0, // [0:0] is the sub-list for extension extendee
  106. 0, // [0:0] is the sub-list for field type_name
  107. }
  108. func init() { file_wecom_WCommonResult_proto_init() }
  109. func file_wecom_WCommonResult_proto_init() {
  110. if File_wecom_WCommonResult_proto != nil {
  111. return
  112. }
  113. type x struct{}
  114. out := protoimpl.TypeBuilder{
  115. File: protoimpl.DescBuilder{
  116. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  117. RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WCommonResult_proto_rawDesc), len(file_wecom_WCommonResult_proto_rawDesc)),
  118. NumEnums: 0,
  119. NumMessages: 1,
  120. NumExtensions: 0,
  121. NumServices: 0,
  122. },
  123. GoTypes: file_wecom_WCommonResult_proto_goTypes,
  124. DependencyIndexes: file_wecom_WCommonResult_proto_depIdxs,
  125. MessageInfos: file_wecom_WCommonResult_proto_msgTypes,
  126. }.Build()
  127. File_wecom_WCommonResult_proto = out.File
  128. file_wecom_WCommonResult_proto_goTypes = nil
  129. file_wecom_WCommonResult_proto_depIdxs = nil
  130. }