system.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.9
  5. // source: backend/operation/system.proto
  6. package operationPb
  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. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // 用户权限
  20. type AddRoleRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  25. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 角色名称
  26. Remarks string `protobuf:"bytes,3,opt,name=remarks,proto3" json:"remarks,omitempty"` // 角色备注
  27. IsShow *IsShow `protobuf:"bytes,4,opt,name=is_show,json=isShow,proto3" json:"is_show,omitempty"` // 是否启用
  28. }
  29. func (x *AddRoleRequest) Reset() {
  30. *x = AddRoleRequest{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_backend_operation_system_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *AddRoleRequest) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*AddRoleRequest) ProtoMessage() {}
  41. func (x *AddRoleRequest) ProtoReflect() protoreflect.Message {
  42. mi := &file_backend_operation_system_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use AddRoleRequest.ProtoReflect.Descriptor instead.
  53. func (*AddRoleRequest) Descriptor() ([]byte, []int) {
  54. return file_backend_operation_system_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *AddRoleRequest) GetId() int64 {
  57. if x != nil {
  58. return x.Id
  59. }
  60. return 0
  61. }
  62. func (x *AddRoleRequest) GetName() string {
  63. if x != nil {
  64. return x.Name
  65. }
  66. return ""
  67. }
  68. func (x *AddRoleRequest) GetRemarks() string {
  69. if x != nil {
  70. return x.Remarks
  71. }
  72. return ""
  73. }
  74. func (x *AddRoleRequest) GetIsShow() *IsShow {
  75. if x != nil {
  76. return x.IsShow
  77. }
  78. return nil
  79. }
  80. var File_backend_operation_system_proto protoreflect.FileDescriptor
  81. var file_backend_operation_system_proto_rawDesc = []byte{
  82. 0x0a, 0x1e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  83. 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  84. 0x12, 0x11, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  85. 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65,
  86. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  87. 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71,
  88. 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  89. 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
  90. 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x61,
  91. 0x72, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6d, 0x61, 0x72,
  92. 0x6b, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x04, 0x20,
  93. 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70,
  94. 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x06,
  95. 0x69, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72,
  96. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  97. }
  98. var (
  99. file_backend_operation_system_proto_rawDescOnce sync.Once
  100. file_backend_operation_system_proto_rawDescData = file_backend_operation_system_proto_rawDesc
  101. )
  102. func file_backend_operation_system_proto_rawDescGZIP() []byte {
  103. file_backend_operation_system_proto_rawDescOnce.Do(func() {
  104. file_backend_operation_system_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_operation_system_proto_rawDescData)
  105. })
  106. return file_backend_operation_system_proto_rawDescData
  107. }
  108. var file_backend_operation_system_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  109. var file_backend_operation_system_proto_goTypes = []interface{}{
  110. (*AddRoleRequest)(nil), // 0: backend.operation.AddRoleRequest
  111. (*IsShow)(nil), // 1: backend.operation.IsShow
  112. }
  113. var file_backend_operation_system_proto_depIdxs = []int32{
  114. 1, // 0: backend.operation.AddRoleRequest.is_show:type_name -> backend.operation.IsShow
  115. 1, // [1:1] is the sub-list for method output_type
  116. 1, // [1:1] is the sub-list for method input_type
  117. 1, // [1:1] is the sub-list for extension type_name
  118. 1, // [1:1] is the sub-list for extension extendee
  119. 0, // [0:1] is the sub-list for field type_name
  120. }
  121. func init() { file_backend_operation_system_proto_init() }
  122. func file_backend_operation_system_proto_init() {
  123. if File_backend_operation_system_proto != nil {
  124. return
  125. }
  126. file_backend_operation_enum_proto_init()
  127. if !protoimpl.UnsafeEnabled {
  128. file_backend_operation_system_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  129. switch v := v.(*AddRoleRequest); i {
  130. case 0:
  131. return &v.state
  132. case 1:
  133. return &v.sizeCache
  134. case 2:
  135. return &v.unknownFields
  136. default:
  137. return nil
  138. }
  139. }
  140. }
  141. type x struct{}
  142. out := protoimpl.TypeBuilder{
  143. File: protoimpl.DescBuilder{
  144. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  145. RawDescriptor: file_backend_operation_system_proto_rawDesc,
  146. NumEnums: 0,
  147. NumMessages: 1,
  148. NumExtensions: 0,
  149. NumServices: 0,
  150. },
  151. GoTypes: file_backend_operation_system_proto_goTypes,
  152. DependencyIndexes: file_backend_operation_system_proto_depIdxs,
  153. MessageInfos: file_backend_operation_system_proto_msgTypes,
  154. }.Build()
  155. File_backend_operation_system_proto = out.File
  156. file_backend_operation_system_proto_rawDesc = nil
  157. file_backend_operation_system_proto_goTypes = nil
  158. file_backend_operation_system_proto_depIdxs = nil
  159. }