铁匠铺顾客刷新修改
This commit is contained in:
parent
2efcdf34e7
commit
b1bcfcd1dc
@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (this *apiComp) RefuseCheck(session comm.IUserSession, req *pb.SmithyRefuseReq) (errdata *pb.ErrorData) {
|
func (this *apiComp) RefuseCheck(session comm.IUserSession, req *pb.SmithyRefuseReq) (errdata *pb.ErrorData) {
|
||||||
if req.CustomerId == 0 {
|
if req.CustomerId == "" {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ReqParameterError,
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
// 贸易
|
// 贸易
|
||||||
|
|
||||||
func (this *apiComp) SellCheck(session comm.IUserSession, req *pb.SmithySellReq) (errdata *pb.ErrorData) {
|
func (this *apiComp) SellCheck(session comm.IUserSession, req *pb.SmithySellReq) (errdata *pb.ErrorData) {
|
||||||
if req.CustomerId == 0 || len(req.EquipIds) == 0 {
|
if req.CustomerId == "" || len(req.EquipIds) == 0 {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ReqParameterError,
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
@ -42,7 +42,14 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
conf, err := this.module.configure.GetSmithyCustomerConf(req.CustomerId)
|
if _, ok := cus.Customers[req.CustomerId]; !ok {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
conf, err := this.module.configure.GetSmithyCustomerConf(cus.Customers[req.CustomerId].CustomerId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ConfigNoFound,
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
@ -63,7 +70,7 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err
|
|||||||
if cus != nil {
|
if cus != nil {
|
||||||
rsp.Customers = cus.Customers
|
rsp.Customers = cus.Customers
|
||||||
} else {
|
} else {
|
||||||
rsp.Customers = []*pb.CustomerInfo{}
|
rsp.Customers = make(map[string]*pb.CustomerInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), "sell", rsp)
|
session.SendMsg(string(this.module.GetType()), "sell", rsp)
|
||||||
|
@ -79,7 +79,9 @@ func (s *modelTrade) getCustomerRandom() (customerId int32) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *modelTrade) getDBCustomer(uid string) (*pb.DBCustomer, error) {
|
func (s *modelTrade) getDBCustomer(uid string) (*pb.DBCustomer, error) {
|
||||||
customer := &pb.DBCustomer{}
|
customer := &pb.DBCustomer{
|
||||||
|
Customers: map[string]*pb.CustomerInfo{},
|
||||||
|
}
|
||||||
if err := s.Get(uid, customer); err != nil {
|
if err := s.Get(uid, customer); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -91,6 +93,7 @@ func (s *modelTrade) addCustomer(uid string, num int32) (*pb.DBCustomer, error)
|
|||||||
customer := &pb.DBCustomer{
|
customer := &pb.DBCustomer{
|
||||||
Id: primitive.NewObjectID().Hex(),
|
Id: primitive.NewObjectID().Hex(),
|
||||||
Uid: uid,
|
Uid: uid,
|
||||||
|
Customers: map[string]*pb.CustomerInfo{},
|
||||||
Total: num,
|
Total: num,
|
||||||
LastRefreshTime: configure.Now().Unix(),
|
LastRefreshTime: configure.Now().Unix(),
|
||||||
}
|
}
|
||||||
@ -103,12 +106,13 @@ func (s *modelTrade) addCustomer(uid string, num int32) (*pb.DBCustomer, error)
|
|||||||
}
|
}
|
||||||
suitId := s.GetSuitRandom(uid, conf.CustomerType)
|
suitId := s.GetSuitRandom(uid, conf.CustomerType)
|
||||||
if suitId != 0 {
|
if suitId != 0 {
|
||||||
customer.Customers = append(customer.Customers, &pb.CustomerInfo{
|
uuid := uuid.NewV4().String()
|
||||||
|
customer.Customers[uuid] = &pb.CustomerInfo{
|
||||||
CustomerId: randCustomerId,
|
CustomerId: randCustomerId,
|
||||||
SuitId: suitId,
|
SuitId: suitId,
|
||||||
EquipCount: s.module.modelStove.StoveSkillBuyEquip(uid),
|
EquipCount: s.module.modelStove.StoveSkillBuyEquip(uid),
|
||||||
Uuid: uuid.NewV4().String(),
|
Uuid: uuid,
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -120,27 +124,17 @@ func (s *modelTrade) addCustomer(uid string, num int32) (*pb.DBCustomer, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 移除顾客
|
// 移除顾客
|
||||||
func (s *modelTrade) removeCustomer(cus *pb.DBCustomer, customerId int32) *pb.DBCustomer {
|
func (s *modelTrade) removeCustomer(cus *pb.DBCustomer, customerId string) *pb.DBCustomer {
|
||||||
var (
|
|
||||||
temp []*pb.CustomerInfo = make([]*pb.CustomerInfo, 0)
|
if _, ok := cus.Customers[customerId]; ok {
|
||||||
)
|
delete(cus.Customers, customerId)
|
||||||
for _, v := range cus.Customers {
|
|
||||||
if v.CustomerId != customerId {
|
|
||||||
temp = append(temp, v)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
cus.Customers = temp
|
|
||||||
// for i, v := range cus.Customers {
|
|
||||||
// if v.CustomerId == customerId {
|
|
||||||
// cus.Customers = append(cus.Customers[:i], cus.Customers[i+1:]...)
|
|
||||||
// i--
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
return cus
|
return cus
|
||||||
}
|
}
|
||||||
|
|
||||||
// 随机新顾客
|
// 随机新顾客
|
||||||
func (s *modelTrade) updateCustomer(uid string, customerId int32) (*pb.DBCustomer, error) {
|
func (s *modelTrade) updateCustomer(uid string, customerId string) (*pb.DBCustomer, error) {
|
||||||
cus, err := s.getDBCustomer(uid)
|
cus, err := s.getDBCustomer(uid)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
cus = s.removeCustomer(cus, customerId)
|
cus = s.removeCustomer(cus, customerId)
|
||||||
@ -158,12 +152,13 @@ func (s *modelTrade) updateCustomer(uid string, customerId int32) (*pb.DBCustome
|
|||||||
}
|
}
|
||||||
suiteId := s.GetSuitRandom(uid, conf.CustomerType)
|
suiteId := s.GetSuitRandom(uid, conf.CustomerType)
|
||||||
if suiteId != 0 {
|
if suiteId != 0 {
|
||||||
cus.Customers = append(cus.Customers, &pb.CustomerInfo{
|
uuid := uuid.NewV4().String()
|
||||||
|
cus.Customers[uuid] = &pb.CustomerInfo{
|
||||||
CustomerId: randCustomerId,
|
CustomerId: randCustomerId,
|
||||||
SuitId: suiteId,
|
SuitId: suiteId,
|
||||||
EquipCount: s.module.modelStove.StoveSkillBuyEquip(uid),
|
EquipCount: s.module.modelStove.StoveSkillBuyEquip(uid),
|
||||||
Uuid: uuid.NewV4().String(),
|
Uuid: uuid,
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cus.LastRefreshTime = configure.Now().Unix()
|
cus.LastRefreshTime = configure.Now().Unix()
|
||||||
@ -223,23 +218,3 @@ func (s *modelTrade) GetSuitRandom(uid string, ctype int32) (suiteId int32) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 交易
|
|
||||||
func (s *modelTrade) trade(uid string, customerId int32) error {
|
|
||||||
cus, err := s.getDBCustomer(uid)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
for i, v := range cus.Customers {
|
|
||||||
if v.CustomerId == customerId {
|
|
||||||
if v.EquipCount <= 0 {
|
|
||||||
return comm.NewCustomError(pb.ErrorCode_SmithyCustomerEquipNoEnough)
|
|
||||||
}
|
|
||||||
cus.Customers = append(cus.Customers[:i], cus.Customers[i+1:]...)
|
|
||||||
i--
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
@ -263,11 +263,11 @@ type DBCustomer struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //
|
||||||
Customers []*CustomerInfo `protobuf:"bytes,3,rep,name=customers,proto3" json:"customers" bson:"customers"` // 顾客信息
|
Customers map[string]*CustomerInfo `protobuf:"bytes,3,rep,name=customers,proto3" json:"customers" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"customers"` // 顾客信息
|
||||||
Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total" bson:"total"` //顾客累计数
|
Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total" bson:"total"` //顾客累计数
|
||||||
LastRefreshTime int64 `protobuf:"varint,5,opt,name=lastRefreshTime,proto3" json:"lastRefreshTime" bson:"lastRefreshTime"` // 上次更新时间
|
LastRefreshTime int64 `protobuf:"varint,5,opt,name=lastRefreshTime,proto3" json:"lastRefreshTime" bson:"lastRefreshTime"` // 上次更新时间
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBCustomer) Reset() {
|
func (x *DBCustomer) Reset() {
|
||||||
@ -316,7 +316,7 @@ func (x *DBCustomer) GetUid() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBCustomer) GetCustomers() []*CustomerInfo {
|
func (x *DBCustomer) GetCustomers() map[string]*CustomerInfo {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Customers
|
return x.Customers
|
||||||
}
|
}
|
||||||
@ -807,69 +807,75 @@ var file_smithy_smithy_db_proto_rawDesc = []byte{
|
|||||||
0x71, 0x75, 0x69, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
0x71, 0x75, 0x69, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x0a, 0x65, 0x71, 0x75, 0x69, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75,
|
0x0a, 0x65, 0x71, 0x75, 0x69, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75,
|
||||||
0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22,
|
0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22,
|
||||||
0x9b, 0x01, 0x0a, 0x0a, 0x44, 0x42, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x12, 0x0e,
|
0xf5, 0x01, 0x0a, 0x0a, 0x44, 0x42, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x12, 0x0e,
|
||||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10,
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10,
|
||||||
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
|
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
|
||||||
0x12, 0x2b, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20,
|
0x12, 0x38, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20,
|
||||||
0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x6e,
|
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44, 0x42, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
|
||||||
0x66, 0x6f, 0x52, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a,
|
0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
||||||
0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f,
|
0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
|
||||||
0x74, 0x61, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65,
|
0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
|
||||||
0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6c, 0x61,
|
0x12, 0x28, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54,
|
||||||
0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xc3, 0x02,
|
0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x52,
|
||||||
0x0a, 0x07, 0x44, 0x42, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x4b, 0x0a, 0x0e, 0x43, 0x75,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x61,
|
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23,
|
||||||
0x74, 0x6c, 0x61, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x41,
|
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
||||||
0x74, 0x6c, 0x61, 0x73, 0x2e, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61,
|
||||||
0x05, 0x61, 0x74, 0x6c, 0x61, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
|
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc3, 0x02, 0x0a, 0x07, 0x44, 0x42, 0x41, 0x74,
|
||||||
0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x41, 0x74, 0x6c, 0x61,
|
0x6c, 0x61, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x73, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07,
|
0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65,
|
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x61, 0x74, 0x6c, 0x61, 0x73, 0x18, 0x03,
|
||||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x14, 0x0a,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x2e, 0x41,
|
||||||
0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x61, 0x77,
|
0x74, 0x6c, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x74, 0x6c, 0x61, 0x73,
|
||||||
0x61, 0x72, 0x64, 0x1a, 0x44, 0x0a, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72,
|
0x12, 0x2f, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28,
|
||||||
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x2e, 0x43, 0x6f, 0x6c, 0x6c,
|
||||||
0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
0x65, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
|
||||||
0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05,
|
0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
|
||||||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x48, 0x0a, 0x0c, 0x43, 0x6f, 0x6c,
|
0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64,
|
||||||
0x6c, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x1a, 0x44, 0x0a,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76,
|
0x0a, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||||
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x43, 0x6f, 0x6c,
|
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a,
|
||||||
0x6c, 0x65, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x46,
|
||||||
0x02, 0x38, 0x01, 0x22, 0x63, 0x0a, 0x0b, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x61,
|
0x6f, 0x72, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
||||||
0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
0x02, 0x38, 0x01, 0x1a, 0x48, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x45, 0x6e,
|
||||||
0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65,
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
||||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x61,
|
||||||
0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08,
|
0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x63, 0x0a,
|
||||||
0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x6b, 0x0a, 0x09, 0x46, 0x6f, 0x72, 0x67,
|
0x0b, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x05, 0x64, 0x61, 0x74, 0x61, 0x31, 0x18, 0x01,
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61,
|
0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f,
|
||||||
0x52, 0x05, 0x64, 0x61, 0x74, 0x61, 0x31, 0x12, 0x20, 0x0a, 0x05, 0x64, 0x61, 0x74, 0x61, 0x32,
|
0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x44, 0x61,
|
0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61,
|
||||||
0x74, 0x61, 0x52, 0x05, 0x64, 0x61, 0x74, 0x61, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74,
|
0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61,
|
||||||
0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x63, 0x74,
|
0x74, 0x65, 0x22, 0x6b, 0x0a, 0x09, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12,
|
||||||
0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x7f, 0x0a, 0x09, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x44, 0x61,
|
0x20, 0x0a, 0x05, 0x64, 0x61, 0x74, 0x61, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a,
|
||||||
0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
0x2e, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x64, 0x61, 0x74, 0x61,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x67, 0x65, 0x43, 0x6f, 0x75,
|
0x31, 0x12, 0x20, 0x0a, 0x05, 0x64, 0x61, 0x74, 0x61, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02,
|
0x32, 0x0a, 0x2e, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x64, 0x61,
|
||||||
0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20,
|
0x74, 0x61, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x07, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22,
|
||||||
0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f,
|
0x7f, 0x0a, 0x09, 0x46, 0x6f, 0x72, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a,
|
||||||
0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
|
0x66, 0x6f, 0x72, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||||
0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x0c, 0x44, 0x42, 0x54, 0x75, 0x6a, 0x69,
|
0x52, 0x0a, 0x66, 0x6f, 0x72, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
0x61, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
0x6c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b,
|
0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x71,
|
||||||
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e,
|
0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18,
|
||||||
0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x63, 0x0a, 0x0a, 0x54,
|
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
||||||
0x75, 0x6a, 0x69, 0x61, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73,
|
0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49,
|
0x22, 0x43, 0x0a, 0x0c, 0x44, 0x42, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x54, 0x61, 0x73, 0x6b,
|
||||||
0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x02, 0x20,
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x21, 0x0a,
|
0x69, 0x64, 0x12, 0x21, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
||||||
0x04, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f,
|
0x0b, 0x32, 0x0b, 0x2e, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05,
|
||||||
0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x64,
|
0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x63, 0x0a, 0x0a, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x54,
|
||||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x61, 0x73, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72,
|
||||||
|
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72,
|
||||||
|
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x64, 0x18,
|
||||||
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67,
|
||||||
|
0x72, 0x65, 0x73, 0x73, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||||
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -884,7 +890,7 @@ func file_smithy_smithy_db_proto_rawDescGZIP() []byte {
|
|||||||
return file_smithy_smithy_db_proto_rawDescData
|
return file_smithy_smithy_db_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_smithy_smithy_db_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
var file_smithy_smithy_db_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
|
||||||
var file_smithy_smithy_db_proto_goTypes = []interface{}{
|
var file_smithy_smithy_db_proto_goTypes = []interface{}{
|
||||||
(*Mastery)(nil), // 0: Mastery
|
(*Mastery)(nil), // 0: Mastery
|
||||||
(*DBStove)(nil), // 1: DBStove
|
(*DBStove)(nil), // 1: DBStove
|
||||||
@ -900,30 +906,32 @@ var file_smithy_smithy_db_proto_goTypes = []interface{}{
|
|||||||
nil, // 11: DBStove.SkillEntry
|
nil, // 11: DBStove.SkillEntry
|
||||||
nil, // 12: DBStove.ForgeEntry
|
nil, // 12: DBStove.ForgeEntry
|
||||||
nil, // 13: DBStove.HitEntry
|
nil, // 13: DBStove.HitEntry
|
||||||
nil, // 14: DBAtlas.AtlasEntry
|
nil, // 14: DBCustomer.CustomersEntry
|
||||||
nil, // 15: DBAtlas.CollectEntry
|
nil, // 15: DBAtlas.AtlasEntry
|
||||||
(*ConIProgress)(nil), // 16: ConIProgress
|
nil, // 16: DBAtlas.CollectEntry
|
||||||
|
(*ConIProgress)(nil), // 17: ConIProgress
|
||||||
}
|
}
|
||||||
var file_smithy_smithy_db_proto_depIdxs = []int32{
|
var file_smithy_smithy_db_proto_depIdxs = []int32{
|
||||||
10, // 0: DBStove.data:type_name -> DBStove.DataEntry
|
10, // 0: DBStove.data:type_name -> DBStove.DataEntry
|
||||||
11, // 1: DBStove.skill:type_name -> DBStove.SkillEntry
|
11, // 1: DBStove.skill:type_name -> DBStove.SkillEntry
|
||||||
12, // 2: DBStove.forge:type_name -> DBStove.ForgeEntry
|
12, // 2: DBStove.forge:type_name -> DBStove.ForgeEntry
|
||||||
13, // 3: DBStove.hit:type_name -> DBStove.HitEntry
|
13, // 3: DBStove.hit:type_name -> DBStove.HitEntry
|
||||||
2, // 4: DBCustomer.customers:type_name -> CustomerInfo
|
14, // 4: DBCustomer.customers:type_name -> DBCustomer.CustomersEntry
|
||||||
14, // 5: DBAtlas.atlas:type_name -> DBAtlas.AtlasEntry
|
15, // 5: DBAtlas.atlas:type_name -> DBAtlas.AtlasEntry
|
||||||
15, // 6: DBAtlas.collect:type_name -> DBAtlas.CollectEntry
|
16, // 6: DBAtlas.collect:type_name -> DBAtlas.CollectEntry
|
||||||
7, // 7: ForgeList.data1:type_name -> ForgeData
|
7, // 7: ForgeList.data1:type_name -> ForgeData
|
||||||
7, // 8: ForgeList.data2:type_name -> ForgeData
|
7, // 8: ForgeList.data2:type_name -> ForgeData
|
||||||
9, // 9: DBTujianTask.tasks:type_name -> TujianTask
|
9, // 9: DBTujianTask.tasks:type_name -> TujianTask
|
||||||
16, // 10: TujianTask.cond:type_name -> ConIProgress
|
17, // 10: TujianTask.cond:type_name -> ConIProgress
|
||||||
0, // 11: DBStove.DataEntry.value:type_name -> Mastery
|
0, // 11: DBStove.DataEntry.value:type_name -> Mastery
|
||||||
6, // 12: DBAtlas.AtlasEntry.value:type_name -> ForgeList
|
2, // 12: DBCustomer.CustomersEntry.value:type_name -> CustomerInfo
|
||||||
5, // 13: DBAtlas.CollectEntry.value:type_name -> CollectData
|
6, // 13: DBAtlas.AtlasEntry.value:type_name -> ForgeList
|
||||||
14, // [14:14] is the sub-list for method output_type
|
5, // 14: DBAtlas.CollectEntry.value:type_name -> CollectData
|
||||||
14, // [14:14] is the sub-list for method input_type
|
15, // [15:15] is the sub-list for method output_type
|
||||||
14, // [14:14] is the sub-list for extension type_name
|
15, // [15:15] is the sub-list for method input_type
|
||||||
14, // [14:14] is the sub-list for extension extendee
|
15, // [15:15] is the sub-list for extension type_name
|
||||||
0, // [0:14] is the sub-list for field type_name
|
15, // [15:15] is the sub-list for extension extendee
|
||||||
|
0, // [0:15] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_smithy_smithy_db_proto_init() }
|
func init() { file_smithy_smithy_db_proto_init() }
|
||||||
@ -1060,7 +1068,7 @@ func file_smithy_smithy_db_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_smithy_smithy_db_proto_rawDesc,
|
RawDescriptor: file_smithy_smithy_db_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 16,
|
NumMessages: 17,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
@ -585,7 +585,7 @@ type SmithyCustomerResp struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Customers []*CustomerInfo `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers"` //顾客及装备信息
|
Customers map[string]*CustomerInfo `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //顾客及装备信息
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithyCustomerResp) Reset() {
|
func (x *SmithyCustomerResp) Reset() {
|
||||||
@ -620,7 +620,7 @@ func (*SmithyCustomerResp) Descriptor() ([]byte, []int) {
|
|||||||
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{11}
|
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithyCustomerResp) GetCustomers() []*CustomerInfo {
|
func (x *SmithyCustomerResp) GetCustomers() map[string]*CustomerInfo {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Customers
|
return x.Customers
|
||||||
}
|
}
|
||||||
@ -633,8 +633,8 @@ type SmithySellReq struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
EquipIds []string `protobuf:"bytes,1,rep,name=equipIds,proto3" json:"equipIds"` // 装备ID
|
EquipIds []string `protobuf:"bytes,1,rep,name=equipIds,proto3" json:"equipIds"` // 装备ID
|
||||||
CustomerId int32 `protobuf:"varint,2,opt,name=customerId,proto3" json:"customerId"` //顾客ID
|
CustomerId string `protobuf:"bytes,2,opt,name=customerId,proto3" json:"customerId"` //顾客ID
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithySellReq) Reset() {
|
func (x *SmithySellReq) Reset() {
|
||||||
@ -676,11 +676,11 @@ func (x *SmithySellReq) GetEquipIds() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithySellReq) GetCustomerId() int32 {
|
func (x *SmithySellReq) GetCustomerId() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.CustomerId
|
return x.CustomerId
|
||||||
}
|
}
|
||||||
return 0
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type SmithySellResp struct {
|
type SmithySellResp struct {
|
||||||
@ -688,9 +688,9 @@ type SmithySellResp struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
CustomerId int32 `protobuf:"varint,1,opt,name=customerId,proto3" json:"customerId"` //顾客ID
|
CustomerId string `protobuf:"bytes,1,opt,name=customerId,proto3" json:"customerId"` //顾客ID
|
||||||
EquipIds []string `protobuf:"bytes,2,rep,name=equipIds,proto3" json:"equipIds"` //出售的装备
|
EquipIds []string `protobuf:"bytes,2,rep,name=equipIds,proto3" json:"equipIds"` //出售的装备
|
||||||
Customers []*CustomerInfo `protobuf:"bytes,3,rep,name=customers,proto3" json:"customers"`
|
Customers map[string]*CustomerInfo `protobuf:"bytes,3,rep,name=customers,proto3" json:"customers" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithySellResp) Reset() {
|
func (x *SmithySellResp) Reset() {
|
||||||
@ -725,11 +725,11 @@ func (*SmithySellResp) Descriptor() ([]byte, []int) {
|
|||||||
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{13}
|
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithySellResp) GetCustomerId() int32 {
|
func (x *SmithySellResp) GetCustomerId() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.CustomerId
|
return x.CustomerId
|
||||||
}
|
}
|
||||||
return 0
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithySellResp) GetEquipIds() []string {
|
func (x *SmithySellResp) GetEquipIds() []string {
|
||||||
@ -739,7 +739,7 @@ func (x *SmithySellResp) GetEquipIds() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithySellResp) GetCustomers() []*CustomerInfo {
|
func (x *SmithySellResp) GetCustomers() map[string]*CustomerInfo {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Customers
|
return x.Customers
|
||||||
}
|
}
|
||||||
@ -752,7 +752,7 @@ type SmithyRefuseReq struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
CustomerId int32 `protobuf:"varint,1,opt,name=customerId,proto3" json:"customerId"` //顾客ID
|
CustomerId string `protobuf:"bytes,1,opt,name=customerId,proto3" json:"customerId"` //顾客ID
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithyRefuseReq) Reset() {
|
func (x *SmithyRefuseReq) Reset() {
|
||||||
@ -787,11 +787,11 @@ func (*SmithyRefuseReq) Descriptor() ([]byte, []int) {
|
|||||||
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{14}
|
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithyRefuseReq) GetCustomerId() int32 {
|
func (x *SmithyRefuseReq) GetCustomerId() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.CustomerId
|
return x.CustomerId
|
||||||
}
|
}
|
||||||
return 0
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type SmithyRefuseResp struct {
|
type SmithyRefuseResp struct {
|
||||||
@ -799,7 +799,7 @@ type SmithyRefuseResp struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Customers []*CustomerInfo `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers"`
|
Customers map[string]*CustomerInfo `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithyRefuseResp) Reset() {
|
func (x *SmithyRefuseResp) Reset() {
|
||||||
@ -834,7 +834,7 @@ func (*SmithyRefuseResp) Descriptor() ([]byte, []int) {
|
|||||||
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{15}
|
return file_smithy_smithy_msg_proto_rawDescGZIP(), []int{15}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SmithyRefuseResp) GetCustomers() []*CustomerInfo {
|
func (x *SmithyRefuseResp) GetCustomers() map[string]*CustomerInfo {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Customers
|
return x.Customers
|
||||||
}
|
}
|
||||||
@ -1351,60 +1351,79 @@ var file_smithy_smithy_msg_proto_rawDesc = []byte{
|
|||||||
0x6f, 0x6c, 0x73, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
0x6f, 0x6c, 0x73, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||||
0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x76,
|
0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x76,
|
||||||
0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x6d, 0x69, 0x74, 0x68,
|
0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x6d, 0x69, 0x74, 0x68,
|
||||||
0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x71, 0x22, 0x41, 0x0a, 0x12,
|
0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x71, 0x22, 0xa3, 0x01, 0x0a,
|
||||||
0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x52, 0x65,
|
0x12, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x52,
|
||||||
0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18,
|
0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73,
|
||||||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x43,
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x22,
|
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x43, 0x75, 0x73, 0x74,
|
||||||
0x4b, 0x0a, 0x0d, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71,
|
0x6f, 0x6d, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x63, 0x75, 0x73, 0x74,
|
||||||
0x12, 0x1a, 0x0a, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
|
0x6f, 0x6d, 0x65, 0x72, 0x73, 0x1a, 0x4b, 0x0a, 0x0e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65,
|
||||||
0x28, 0x09, 0x52, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x12, 0x1e, 0x0a, 0x0a,
|
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
||||||
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
||||||
0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22, 0x79, 0x0a, 0x0e,
|
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f,
|
||||||
0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e,
|
0x6d, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
|
||||||
0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
0x38, 0x01, 0x22, 0x4b, 0x0a, 0x0d, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x53, 0x65, 0x6c, 0x6c,
|
||||||
0x28, 0x05, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a,
|
0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x18,
|
||||||
0x0a, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
|
0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x12,
|
||||||
0x52, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x63, 0x75,
|
0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20,
|
||||||
0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22,
|
||||||
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x63, 0x75,
|
0xd7, 0x01, 0x0a, 0x0e, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x52, 0x65,
|
||||||
0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x22, 0x31, 0x0a, 0x0f, 0x53, 0x6d, 0x69, 0x74, 0x68,
|
0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64,
|
||||||
0x79, 0x52, 0x65, 0x66, 0x75, 0x73, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
|
||||||
0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
|
0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x18, 0x02,
|
||||||
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x10, 0x53, 0x6d,
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x64, 0x73, 0x12, 0x3c,
|
||||||
0x69, 0x74, 0x68, 0x79, 0x52, 0x65, 0x66, 0x75, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b,
|
0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
|
||||||
0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
0x0b, 0x32, 0x1e, 0x2e, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x52, 0x65,
|
||||||
0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
|
0x73, 0x70, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72,
|
||||||
0x52, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x53,
|
0x79, 0x52, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x1a, 0x4b, 0x0a, 0x0e,
|
||||||
0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
||||||
0x71, 0x22, 0x33, 0x0a, 0x13, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73,
|
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
||||||
0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x41, 0x74, 0x6c, 0x61, 0x73,
|
0x0d, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05,
|
||||||
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x28, 0x0a, 0x16, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79,
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x31, 0x0a, 0x0f, 0x53, 0x6d, 0x69,
|
||||||
0x41, 0x74, 0x6c, 0x61, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
|
0x74, 0x68, 0x79, 0x52, 0x65, 0x66, 0x75, 0x73, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a,
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x22, 0x37, 0x0a, 0x17, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x41,
|
0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9f, 0x01, 0x0a,
|
||||||
0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64,
|
0x10, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x52, 0x65, 0x66, 0x75, 0x73, 0x65, 0x52, 0x65, 0x73,
|
||||||
|
0x70, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x01,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x52, 0x65, 0x66,
|
||||||
|
0x75, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
|
||||||
|
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
|
||||||
|
0x73, 0x1a, 0x4b, 0x0a, 0x0e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x45, 0x6e,
|
||||||
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49,
|
||||||
|
0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x14,
|
||||||
|
0x0a, 0x12, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x4c, 0x69, 0x73,
|
||||||
|
0x74, 0x52, 0x65, 0x71, 0x22, 0x33, 0x0a, 0x13, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74,
|
||||||
|
0x6c, 0x61, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64,
|
||||||
0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x41, 0x74,
|
0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x41, 0x74,
|
||||||
0x6c, 0x61, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x6d, 0x69,
|
0x6c, 0x61, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x28, 0x0a, 0x16, 0x53, 0x6d, 0x69,
|
||||||
0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71,
|
0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65,
|
||||||
0x22, 0x53, 0x0a, 0x14, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x41,
|
0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
0x02, 0x69, 0x64, 0x22, 0x37, 0x0a, 0x17, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x41, 0x74, 0x6c, 0x61, 0x73,
|
0x61, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c,
|
||||||
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20,
|
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44,
|
||||||
0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73,
|
0x42, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x15, 0x0a, 0x13,
|
||||||
0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x12, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x54,
|
0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c, 0x61, 0x73, 0x41, 0x77, 0x61, 0x72, 0x64,
|
||||||
0x61, 0x73, 0x6b, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74,
|
0x52, 0x65, 0x71, 0x22, 0x53, 0x0a, 0x14, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x41, 0x74, 0x6c,
|
||||||
0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73,
|
0x61, 0x73, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64,
|
||||||
0x6b, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x13, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x54, 0x61, 0x73,
|
0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x41, 0x74,
|
||||||
0x6b, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61,
|
0x6c, 0x61, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x03, 0x72, 0x65, 0x73,
|
||||||
0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b,
|
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73,
|
||||||
0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x54, 0x61, 0x73, 0x6b,
|
0x65, 0x74, 0x73, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x12, 0x53, 0x6d, 0x69, 0x74,
|
||||||
0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a, 0x12, 0x53, 0x6d, 0x69, 0x74, 0x68,
|
0x68, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x16,
|
||||||
0x79, 0x54, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a,
|
0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
||||||
0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x54,
|
0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x13, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79,
|
||||||
0x75, 0x6a, 0x69, 0x61, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,
|
0x54, 0x61, 0x73, 0x6b, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a,
|
||||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74,
|
||||||
|
0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x6d, 0x69, 0x74, 0x68, 0x79, 0x54,
|
||||||
|
0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a, 0x12, 0x53, 0x6d,
|
||||||
|
0x69, 0x74, 0x68, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x12, 0x21, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
|
0x0b, 0x2e, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61,
|
||||||
|
0x73, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -1419,7 +1438,7 @@ func file_smithy_smithy_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_smithy_smithy_msg_proto_rawDescData
|
return file_smithy_smithy_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_smithy_smithy_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
|
var file_smithy_smithy_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 30)
|
||||||
var file_smithy_smithy_msg_proto_goTypes = []interface{}{
|
var file_smithy_smithy_msg_proto_goTypes = []interface{}{
|
||||||
(*SmithyGetStoveInfoReq)(nil), // 0: SmithyGetStoveInfoReq
|
(*SmithyGetStoveInfoReq)(nil), // 0: SmithyGetStoveInfoReq
|
||||||
(*SmithyGetStoveInfoResp)(nil), // 1: SmithyGetStoveInfoResp
|
(*SmithyGetStoveInfoResp)(nil), // 1: SmithyGetStoveInfoResp
|
||||||
@ -1448,34 +1467,40 @@ var file_smithy_smithy_msg_proto_goTypes = []interface{}{
|
|||||||
(*SmithyTasklistReq)(nil), // 24: SmithyTasklistReq
|
(*SmithyTasklistReq)(nil), // 24: SmithyTasklistReq
|
||||||
(*SmithyTasklistResp)(nil), // 25: SmithyTasklistResp
|
(*SmithyTasklistResp)(nil), // 25: SmithyTasklistResp
|
||||||
nil, // 26: SmithyForgeEquipReq.HitEntry
|
nil, // 26: SmithyForgeEquipReq.HitEntry
|
||||||
(*DBStove)(nil), // 27: DBStove
|
nil, // 27: SmithyCustomerResp.CustomersEntry
|
||||||
(*DB_Equipment)(nil), // 28: DB_Equipment
|
nil, // 28: SmithySellResp.CustomersEntry
|
||||||
(*CustomerInfo)(nil), // 29: CustomerInfo
|
nil, // 29: SmithyRefuseResp.CustomersEntry
|
||||||
(*DBAtlas)(nil), // 30: DBAtlas
|
(*DBStove)(nil), // 30: DBStove
|
||||||
(*UserAssets)(nil), // 31: UserAssets
|
(*DB_Equipment)(nil), // 31: DB_Equipment
|
||||||
(*TujianTask)(nil), // 32: TujianTask
|
(*DBAtlas)(nil), // 32: DBAtlas
|
||||||
|
(*UserAssets)(nil), // 33: UserAssets
|
||||||
|
(*TujianTask)(nil), // 34: TujianTask
|
||||||
|
(*CustomerInfo)(nil), // 35: CustomerInfo
|
||||||
}
|
}
|
||||||
var file_smithy_smithy_msg_proto_depIdxs = []int32{
|
var file_smithy_smithy_msg_proto_depIdxs = []int32{
|
||||||
27, // 0: SmithyGetStoveInfoResp.data:type_name -> DBStove
|
30, // 0: SmithyGetStoveInfoResp.data:type_name -> DBStove
|
||||||
26, // 1: SmithyForgeEquipReq.hit:type_name -> SmithyForgeEquipReq.HitEntry
|
26, // 1: SmithyForgeEquipReq.hit:type_name -> SmithyForgeEquipReq.HitEntry
|
||||||
28, // 2: SmithyForgeEquipResp.equip:type_name -> DB_Equipment
|
31, // 2: SmithyForgeEquipResp.equip:type_name -> DB_Equipment
|
||||||
27, // 3: SmithyForgeEquipResp.data:type_name -> DBStove
|
30, // 3: SmithyForgeEquipResp.data:type_name -> DBStove
|
||||||
27, // 4: SmithyStoveUpResp.data:type_name -> DBStove
|
30, // 4: SmithyStoveUpResp.data:type_name -> DBStove
|
||||||
27, // 5: SmithyRiseResp.data:type_name -> DBStove
|
30, // 5: SmithyRiseResp.data:type_name -> DBStove
|
||||||
27, // 6: SmithyToolsUpResp.data:type_name -> DBStove
|
30, // 6: SmithyToolsUpResp.data:type_name -> DBStove
|
||||||
29, // 7: SmithyCustomerResp.customers:type_name -> CustomerInfo
|
27, // 7: SmithyCustomerResp.customers:type_name -> SmithyCustomerResp.CustomersEntry
|
||||||
29, // 8: SmithySellResp.customers:type_name -> CustomerInfo
|
28, // 8: SmithySellResp.customers:type_name -> SmithySellResp.CustomersEntry
|
||||||
29, // 9: SmithyRefuseResp.customers:type_name -> CustomerInfo
|
29, // 9: SmithyRefuseResp.customers:type_name -> SmithyRefuseResp.CustomersEntry
|
||||||
30, // 10: SmithyAtlasListResp.data:type_name -> DBAtlas
|
32, // 10: SmithyAtlasListResp.data:type_name -> DBAtlas
|
||||||
30, // 11: SmithyAtlasActivateResp.data:type_name -> DBAtlas
|
32, // 11: SmithyAtlasActivateResp.data:type_name -> DBAtlas
|
||||||
30, // 12: SmithyAtlasAwardResp.data:type_name -> DBAtlas
|
32, // 12: SmithyAtlasAwardResp.data:type_name -> DBAtlas
|
||||||
31, // 13: SmithyAtlasAwardResp.res:type_name -> UserAssets
|
33, // 13: SmithyAtlasAwardResp.res:type_name -> UserAssets
|
||||||
32, // 14: SmithyTasklistResp.tasks:type_name -> TujianTask
|
34, // 14: SmithyTasklistResp.tasks:type_name -> TujianTask
|
||||||
15, // [15:15] is the sub-list for method output_type
|
35, // 15: SmithyCustomerResp.CustomersEntry.value:type_name -> CustomerInfo
|
||||||
15, // [15:15] is the sub-list for method input_type
|
35, // 16: SmithySellResp.CustomersEntry.value:type_name -> CustomerInfo
|
||||||
15, // [15:15] is the sub-list for extension type_name
|
35, // 17: SmithyRefuseResp.CustomersEntry.value:type_name -> CustomerInfo
|
||||||
15, // [15:15] is the sub-list for extension extendee
|
18, // [18:18] is the sub-list for method output_type
|
||||||
0, // [0:15] is the sub-list for field type_name
|
18, // [18:18] is the sub-list for method input_type
|
||||||
|
18, // [18:18] is the sub-list for extension type_name
|
||||||
|
18, // [18:18] is the sub-list for extension extendee
|
||||||
|
0, // [0:18] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_smithy_smithy_msg_proto_init() }
|
func init() { file_smithy_smithy_msg_proto_init() }
|
||||||
@ -1806,7 +1831,7 @@ func file_smithy_smithy_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_smithy_smithy_msg_proto_rawDesc,
|
RawDescriptor: file_smithy_smithy_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 27,
|
NumMessages: 30,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user