wallet.pb.go 13.1 KB
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
// 	protoc        v3.20.1
// source: wallet.proto

package wallet

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
	_ "google.golang.org/protobuf/types/known/timestamppb"
kzkzzzz's avatar
kzkzzzz committed
13 14 15 16 17 18 19 20 21 22 23
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
type GoldType int32

const (
	GoldType_typeNone   GoldType = 0
	GoldType_typeCharge GoldType = 59
	GoldType_typeAdd    GoldType = 60
)

// Enum value maps for GoldType.
var (
	GoldType_name = map[int32]string{
		0:  "typeNone",
		59: "typeCharge",
		60: "typeAdd",
	}
	GoldType_value = map[string]int32{
		"typeNone":   0,
		"typeCharge": 59,
		"typeAdd":    60,
	}
)

func (x GoldType) Enum() *GoldType {
	p := new(GoldType)
	*p = x
	return p
}

func (x GoldType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (GoldType) Descriptor() protoreflect.EnumDescriptor {
	return file_wallet_proto_enumTypes[0].Descriptor()
}

func (GoldType) Type() protoreflect.EnumType {
	return &file_wallet_proto_enumTypes[0]
}

func (x GoldType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use GoldType.Descriptor instead.
func (GoldType) EnumDescriptor() ([]byte, []int) {
	return file_wallet_proto_rawDescGZIP(), []int{0}
}

type AddGoldReq struct {
kzkzzzz's avatar
kzkzzzz committed
74 75 76 77
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

78 79 80 81 82
	UserId      int64    `protobuf:"varint,1,opt,name=userId,proto3" json:"userId" validate:"required"`    // @gotags: validate:"required"
	GoldNum     float32  `protobuf:"fixed32,2,opt,name=goldNum,proto3" json:"goldNum" validate:"required,gt=0"` // @gotags: validate:"required,gt=0"
	Type        GoldType `protobuf:"varint,3,opt,name=type,proto3,enum=GoldType" json:"type"`
	AdminUserId int64    `protobuf:"varint,4,opt,name=adminUserId,proto3" json:"adminUserId"`
	Remark      string   `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark"`
kzkzzzz's avatar
kzkzzzz committed
83 84
}

85 86
func (x *AddGoldReq) Reset() {
	*x = AddGoldReq{}
kzkzzzz's avatar
kzkzzzz committed
87 88 89 90 91 92 93
	if protoimpl.UnsafeEnabled {
		mi := &file_wallet_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

94
func (x *AddGoldReq) String() string {
kzkzzzz's avatar
kzkzzzz committed
95 96 97
	return protoimpl.X.MessageStringOf(x)
}

98
func (*AddGoldReq) ProtoMessage() {}
kzkzzzz's avatar
kzkzzzz committed
99

100
func (x *AddGoldReq) ProtoReflect() protoreflect.Message {
kzkzzzz's avatar
kzkzzzz committed
101 102 103 104 105 106 107 108 109 110 111
	mi := &file_wallet_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

112 113
// Deprecated: Use AddGoldReq.ProtoReflect.Descriptor instead.
func (*AddGoldReq) Descriptor() ([]byte, []int) {
kzkzzzz's avatar
kzkzzzz committed
114 115 116
	return file_wallet_proto_rawDescGZIP(), []int{0}
}

117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
func (x *AddGoldReq) GetUserId() int64 {
	if x != nil {
		return x.UserId
	}
	return 0
}

func (x *AddGoldReq) GetGoldNum() float32 {
	if x != nil {
		return x.GoldNum
	}
	return 0
}

func (x *AddGoldReq) GetType() GoldType {
kzkzzzz's avatar
kzkzzzz committed
132
	if x != nil {
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
		return x.Type
	}
	return GoldType_typeNone
}

func (x *AddGoldReq) GetAdminUserId() int64 {
	if x != nil {
		return x.AdminUserId
	}
	return 0
}

func (x *AddGoldReq) GetRemark() string {
	if x != nil {
		return x.Remark
kzkzzzz's avatar
kzkzzzz committed
148 149 150 151
	}
	return ""
}

152
type AddGoldResp struct {
kzkzzzz's avatar
kzkzzzz committed
153 154 155 156 157
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

158 159
func (x *AddGoldResp) Reset() {
	*x = AddGoldResp{}
kzkzzzz's avatar
kzkzzzz committed
160 161 162 163 164 165 166
	if protoimpl.UnsafeEnabled {
		mi := &file_wallet_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

167
func (x *AddGoldResp) String() string {
kzkzzzz's avatar
kzkzzzz committed
168 169 170
	return protoimpl.X.MessageStringOf(x)
}

171
func (*AddGoldResp) ProtoMessage() {}
kzkzzzz's avatar
kzkzzzz committed
172

173
func (x *AddGoldResp) ProtoReflect() protoreflect.Message {
kzkzzzz's avatar
kzkzzzz committed
174 175 176 177 178 179 180 181 182 183 184
	mi := &file_wallet_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

185 186
// Deprecated: Use AddGoldResp.ProtoReflect.Descriptor instead.
func (*AddGoldResp) Descriptor() ([]byte, []int) {
kzkzzzz's avatar
kzkzzzz committed
187 188 189
	return file_wallet_proto_rawDescGZIP(), []int{1}
}

190
type ChargeOneReq struct {
kzkzzzz's avatar
kzkzzzz committed
191 192 193 194
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

195 196 197
	UserId  int64    `protobuf:"varint,1,opt,name=userId,proto3" json:"userId" validate:"required"`    // @gotags: validate:"required"
	GoldNum float32  `protobuf:"fixed32,2,opt,name=goldNum,proto3" json:"goldNum" validate:"required,gt=0"` // @gotags: validate:"required,gt=0"
	Type    GoldType `protobuf:"varint,3,opt,name=type,proto3,enum=GoldType" json:"type"`
kzkzzzz's avatar
kzkzzzz committed
198 199
}

200 201
func (x *ChargeOneReq) Reset() {
	*x = ChargeOneReq{}
kzkzzzz's avatar
kzkzzzz committed
202 203 204 205 206 207 208
	if protoimpl.UnsafeEnabled {
		mi := &file_wallet_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

209
func (x *ChargeOneReq) String() string {
kzkzzzz's avatar
kzkzzzz committed
210 211 212
	return protoimpl.X.MessageStringOf(x)
}

213
func (*ChargeOneReq) ProtoMessage() {}
kzkzzzz's avatar
kzkzzzz committed
214

215
func (x *ChargeOneReq) ProtoReflect() protoreflect.Message {
kzkzzzz's avatar
kzkzzzz committed
216 217 218 219 220 221 222 223 224 225 226
	mi := &file_wallet_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

227 228
// Deprecated: Use ChargeOneReq.ProtoReflect.Descriptor instead.
func (*ChargeOneReq) Descriptor() ([]byte, []int) {
kzkzzzz's avatar
kzkzzzz committed
229 230 231
	return file_wallet_proto_rawDescGZIP(), []int{2}
}

232
func (x *ChargeOneReq) GetUserId() int64 {
kzkzzzz's avatar
kzkzzzz committed
233
	if x != nil {
234
		return x.UserId
kzkzzzz's avatar
kzkzzzz committed
235 236 237 238
	}
	return 0
}

239
func (x *ChargeOneReq) GetGoldNum() float32 {
kzkzzzz's avatar
kzkzzzz committed
240
	if x != nil {
241
		return x.GoldNum
kzkzzzz's avatar
kzkzzzz committed
242
	}
243
	return 0
kzkzzzz's avatar
kzkzzzz committed
244 245
}

246
func (x *ChargeOneReq) GetType() GoldType {
kzkzzzz's avatar
kzkzzzz committed
247
	if x != nil {
248
		return x.Type
kzkzzzz's avatar
kzkzzzz committed
249
	}
250
	return GoldType_typeNone
kzkzzzz's avatar
kzkzzzz committed
251 252
}

253
type ChargeOneResp struct {
kzkzzzz's avatar
kzkzzzz committed
254 255 256 257 258
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

259 260
func (x *ChargeOneResp) Reset() {
	*x = ChargeOneResp{}
kzkzzzz's avatar
kzkzzzz committed
261 262 263 264 265 266 267
	if protoimpl.UnsafeEnabled {
		mi := &file_wallet_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

268
func (x *ChargeOneResp) String() string {
kzkzzzz's avatar
kzkzzzz committed
269 270 271
	return protoimpl.X.MessageStringOf(x)
}

272
func (*ChargeOneResp) ProtoMessage() {}
kzkzzzz's avatar
kzkzzzz committed
273

274
func (x *ChargeOneResp) ProtoReflect() protoreflect.Message {
kzkzzzz's avatar
kzkzzzz committed
275 276 277 278 279 280 281 282 283 284 285
	mi := &file_wallet_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

286 287
// Deprecated: Use ChargeOneResp.ProtoReflect.Descriptor instead.
func (*ChargeOneResp) Descriptor() ([]byte, []int) {
kzkzzzz's avatar
kzkzzzz committed
288 289 290 291 292 293 294 295 296
	return file_wallet_proto_rawDescGZIP(), []int{3}
}

var File_wallet_proto protoreflect.FileDescriptor

var file_wallet_proto_rawDesc = []byte{
	0x0a, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,
	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
	0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
	0x97, 0x01, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x12, 0x16,
	0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
	0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75,
	0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d,
	0x12, 0x1d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
	0x2e, 0x47, 0x6f, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
	0x20, 0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04,
	0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x49,
	0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x0d, 0x0a, 0x0b, 0x41, 0x64, 0x64,
	0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5f, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x72,
	0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
	0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
	0x12, 0x18, 0x0a, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28,
	0x02, 0x52, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x0a, 0x04, 0x74, 0x79,
	0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x47, 0x6f, 0x6c, 0x64, 0x54,
	0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x68, 0x61,
	0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x2a, 0x35, 0x0a, 0x08, 0x47, 0x6f,
	0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x6f,
	0x6e, 0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x74, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x72,
	0x67, 0x65, 0x10, 0x3b, 0x12, 0x0b, 0x0a, 0x07, 0x74, 0x79, 0x70, 0x65, 0x41, 0x64, 0x64, 0x10,
	0x3c, 0x32, 0x5e, 0x0a, 0x06, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x07, 0x41,
	0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x12, 0x0b, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64,
	0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73,
	0x70, 0x22, 0x00, 0x12, 0x2c, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65,
	0x12, 0x0d, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a,
	0x0e, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22,
	0x00, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x3b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x62, 0x06,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
kzkzzzz's avatar
kzkzzzz committed
326 327 328 329 330 331 332 333 334 335 336 337 338 339
}

var (
	file_wallet_proto_rawDescOnce sync.Once
	file_wallet_proto_rawDescData = file_wallet_proto_rawDesc
)

func file_wallet_proto_rawDescGZIP() []byte {
	file_wallet_proto_rawDescOnce.Do(func() {
		file_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(file_wallet_proto_rawDescData)
	})
	return file_wallet_proto_rawDescData
}

340
var file_wallet_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
kzkzzzz's avatar
kzkzzzz committed
341 342
var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_wallet_proto_goTypes = []interface{}{
343 344 345 346 347
	(GoldType)(0),         // 0: GoldType
	(*AddGoldReq)(nil),    // 1: AddGoldReq
	(*AddGoldResp)(nil),   // 2: AddGoldResp
	(*ChargeOneReq)(nil),  // 3: ChargeOneReq
	(*ChargeOneResp)(nil), // 4: ChargeOneResp
kzkzzzz's avatar
kzkzzzz committed
348 349
}
var file_wallet_proto_depIdxs = []int32{
350 351 352 353 354 355 356 357 358 359 360
	0, // 0: AddGoldReq.type:type_name -> GoldType
	0, // 1: ChargeOneReq.type:type_name -> GoldType
	1, // 2: Wallet.AddGold:input_type -> AddGoldReq
	3, // 3: Wallet.ChargeOne:input_type -> ChargeOneReq
	2, // 4: Wallet.AddGold:output_type -> AddGoldResp
	4, // 5: Wallet.ChargeOne:output_type -> ChargeOneResp
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
kzkzzzz's avatar
kzkzzzz committed
361 362 363 364 365 366 367 368 369
}

func init() { file_wallet_proto_init() }
func file_wallet_proto_init() {
	if File_wallet_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_wallet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
370
			switch v := v.(*AddGoldReq); i {
kzkzzzz's avatar
kzkzzzz committed
371 372 373 374 375 376 377 378 379 380 381
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_wallet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
382
			switch v := v.(*AddGoldResp); i {
kzkzzzz's avatar
kzkzzzz committed
383 384 385 386 387 388 389 390 391 392 393
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_wallet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
394
			switch v := v.(*ChargeOneReq); i {
kzkzzzz's avatar
kzkzzzz committed
395 396 397 398 399 400 401 402 403 404 405
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_wallet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
406
			switch v := v.(*ChargeOneResp); i {
kzkzzzz's avatar
kzkzzzz committed
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_wallet_proto_rawDesc,
423
			NumEnums:      1,
kzkzzzz's avatar
kzkzzzz committed
424 425 426 427 428 429
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_wallet_proto_goTypes,
		DependencyIndexes: file_wallet_proto_depIdxs,
430
		EnumInfos:         file_wallet_proto_enumTypes,
kzkzzzz's avatar
kzkzzzz committed
431 432 433 434 435 436 437
		MessageInfos:      file_wallet_proto_msgTypes,
	}.Build()
	File_wallet_proto = out.File
	file_wallet_proto_rawDesc = nil
	file_wallet_proto_goTypes = nil
	file_wallet_proto_depIdxs = nil
}