上传猜颜色
This commit is contained in:
parent
5834494afc
commit
264ad9411f
30
modules/dcolor/api_info.go
Normal file
30
modules/dcolor/api_info.go
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
package dcolor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.DColorInfoReq) (errdata *pb.ErrorData) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) Info(session comm.IUserSession, req *pb.DColorInfoReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBDColor
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if errdata = this.InfoCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if info, err = this.module.model.getModel(session.GetUserId()); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
session.SendMsg(string(this.module.GetType()), "singleover", &pb.DColorInfoResp{Info: info})
|
||||||
|
return
|
||||||
|
}
|
@ -131,13 +131,7 @@ func (this *apiComp) Qiecuo(session comm.IUserSession, req *pb.DColorQiecuoReq)
|
|||||||
"targets": result.Targets,
|
"targets": result.Targets,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err = session.SendMsg(string(this.module.GetType()), "qiecuo", &pb.DColorQiecuoResp{Fid: req.Fid}); err != nil {
|
session.SendMsg(string(this.module.GetType()), "qiecuo", &pb.DColorQiecuoResp{Fid: req.Fid})
|
||||||
errdata = &pb.ErrorData{
|
|
||||||
Code: pb.ErrorCode_SystemError,
|
|
||||||
Title: pb.ErrorCode_SystemError.ToString(),
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
|
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
|
||||||
&pb.PracticeQiecuonotifyPush{Uid: session.GetUserId(), Name: user.Name, NotifyType: 1}, req.Fid)
|
&pb.PracticeQiecuonotifyPush{Uid: session.GetUserId(), Name: user.Name, NotifyType: 1}, req.Fid)
|
||||||
|
25
modules/dcolor/api_single.go
Normal file
25
modules/dcolor/api_single.go
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package dcolor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
)
|
||||||
|
|
||||||
|
//接受切磋
|
||||||
|
|
||||||
|
func (this *apiComp) SingleCheck(session comm.IUserSession, req *pb.DColorSingleReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) Single(session comm.IUserSession, req *pb.DColorSingleReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
colors []pb.DBDColorColor
|
||||||
|
)
|
||||||
|
if errdata = this.SingleCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
colors = RandomColor(req.Difficulty, req.Repeat)
|
||||||
|
session.SendMsg(string(this.module.GetType()), "single", &pb.DColorSingleResp{Results: colors})
|
||||||
|
return
|
||||||
|
}
|
42
modules/dcolor/api_singleover.go
Normal file
42
modules/dcolor/api_singleover.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
package dcolor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
)
|
||||||
|
|
||||||
|
//接受切磋
|
||||||
|
|
||||||
|
func (this *apiComp) SingleOverCheck(session comm.IUserSession, req *pb.DColorSingleOverReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleOverReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBDColor
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if info, err = this.module.model.getModel(session.GetUserId()); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
info.Integral += 300
|
||||||
|
if err = this.module.model.Change(session.GetUserId(), map[string]interface{}{
|
||||||
|
"integral": info.Integral,
|
||||||
|
}); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
session.SendMsg(string(this.module.GetType()), "singleover", &pb.DColorSingleOverResp{Integral: info.Integral})
|
||||||
|
return
|
||||||
|
}
|
53
modules/dcolor/core.go
Normal file
53
modules/dcolor/core.go
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
package dcolor
|
||||||
|
|
||||||
|
import (
|
||||||
|
"crypto/rand"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
"math/big"
|
||||||
|
)
|
||||||
|
|
||||||
|
//随机颜色
|
||||||
|
func RandomColor(difficulty pb.DBDColorDifficulty, Repeat bool) (temcolors []pb.DBDColorColor) {
|
||||||
|
var (
|
||||||
|
colorNum int
|
||||||
|
colors []pb.DBDColorColor = []pb.DBDColorColor{
|
||||||
|
pb.DBDColorColor_Color_0,
|
||||||
|
pb.DBDColorColor_Color_1,
|
||||||
|
pb.DBDColorColor_Color_2,
|
||||||
|
pb.DBDColorColor_Color_3,
|
||||||
|
pb.DBDColorColor_Color_4,
|
||||||
|
pb.DBDColorColor_Color_5,
|
||||||
|
pb.DBDColorColor_Color_6,
|
||||||
|
pb.DBDColorColor_Color_7,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
switch difficulty {
|
||||||
|
case pb.DBDColorDifficulty_Simple:
|
||||||
|
colorNum = 4
|
||||||
|
temcolors = make([]pb.DBDColorColor, 4)
|
||||||
|
break
|
||||||
|
case pb.DBDColorDifficulty_Difficulty:
|
||||||
|
colorNum = 6
|
||||||
|
temcolors = make([]pb.DBDColorColor, 6)
|
||||||
|
break
|
||||||
|
case pb.DBDColorDifficulty_Hell:
|
||||||
|
colorNum = 8
|
||||||
|
temcolors = make([]pb.DBDColorColor, 7)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if Repeat {
|
||||||
|
for i := 0; i < colorNum; i++ {
|
||||||
|
n, _ := rand.Int(rand.Reader, big.NewInt(8))
|
||||||
|
temcolors[i] = colors[n.Int64()]
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for i := 0; i < colorNum; i++ {
|
||||||
|
n, _ := rand.Int(rand.Reader, big.NewInt(int64(len(colors))))
|
||||||
|
index := n.Int64()
|
||||||
|
temcolors[i] = colors[index]
|
||||||
|
colors = append(colors[0:index], colors[index+1:]...)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
@ -3,8 +3,11 @@ package dcolor
|
|||||||
import (
|
import (
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
"go_dreamfactory/lego/core"
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
"go_dreamfactory/modules"
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
|
||||||
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
"go.mongodb.org/mongo-driver/x/bsonx"
|
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||||
)
|
)
|
||||||
@ -22,3 +25,21 @@ func (this *modelComp) Init(service core.IService, module core.IModule, comp cor
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取用户全部的埋点数据
|
||||||
|
func (this *modelComp) getModel(uid string) (info *pb.DBDColor, err error) {
|
||||||
|
info = &pb.DBDColor{}
|
||||||
|
if err = this.Get(uid, info); err != nil && err != mgo.MongodbNil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if err == mgo.MongodbNil {
|
||||||
|
info = &pb.DBDColor{
|
||||||
|
Id: primitive.NewObjectID().Hex(),
|
||||||
|
Uid: uid,
|
||||||
|
Integral: 0,
|
||||||
|
}
|
||||||
|
err = this.Add(uid, info)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
@ -134,6 +134,70 @@ func (DBDColorColor) EnumDescriptor() ([]byte, []int) {
|
|||||||
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1}
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//切磋请求记录
|
||||||
|
type DBDColor struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
|
||||||
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||||
|
Integral int32 `protobuf:"varint,3,opt,name=integral,proto3" json:"integral"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDColor) Reset() {
|
||||||
|
*x = DBDColor{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDColor) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBDColor) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBDColor) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dcolor_dcolor_db_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)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DBDColor.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBDColor) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDColor) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDColor) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDColor) GetIntegral() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Integral
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type DBDColorQiecuoInvite struct {
|
type DBDColorQiecuoInvite struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -146,7 +210,7 @@ type DBDColorQiecuoInvite struct {
|
|||||||
func (x *DBDColorQiecuoInvite) Reset() {
|
func (x *DBDColorQiecuoInvite) Reset() {
|
||||||
*x = DBDColorQiecuoInvite{}
|
*x = DBDColorQiecuoInvite{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[0]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -159,7 +223,7 @@ func (x *DBDColorQiecuoInvite) String() string {
|
|||||||
func (*DBDColorQiecuoInvite) ProtoMessage() {}
|
func (*DBDColorQiecuoInvite) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DBDColorQiecuoInvite) ProtoReflect() protoreflect.Message {
|
func (x *DBDColorQiecuoInvite) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[0]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -172,7 +236,7 @@ func (x *DBDColorQiecuoInvite) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DBDColorQiecuoInvite.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DBDColorQiecuoInvite.ProtoReflect.Descriptor instead.
|
||||||
func (*DBDColorQiecuoInvite) Descriptor() ([]byte, []int) {
|
func (*DBDColorQiecuoInvite) Descriptor() ([]byte, []int) {
|
||||||
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{0}
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBDColorQiecuoInvite) GetUid() string {
|
func (x *DBDColorQiecuoInvite) GetUid() string {
|
||||||
@ -208,7 +272,7 @@ type DBDColorQiecuoRecord struct {
|
|||||||
func (x *DBDColorQiecuoRecord) Reset() {
|
func (x *DBDColorQiecuoRecord) Reset() {
|
||||||
*x = DBDColorQiecuoRecord{}
|
*x = DBDColorQiecuoRecord{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[1]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -221,7 +285,7 @@ func (x *DBDColorQiecuoRecord) String() string {
|
|||||||
func (*DBDColorQiecuoRecord) ProtoMessage() {}
|
func (*DBDColorQiecuoRecord) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DBDColorQiecuoRecord) ProtoReflect() protoreflect.Message {
|
func (x *DBDColorQiecuoRecord) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[1]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[2]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -234,7 +298,7 @@ func (x *DBDColorQiecuoRecord) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DBDColorQiecuoRecord.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DBDColorQiecuoRecord.ProtoReflect.Descriptor instead.
|
||||||
func (*DBDColorQiecuoRecord) Descriptor() ([]byte, []int) {
|
func (*DBDColorQiecuoRecord) Descriptor() ([]byte, []int) {
|
||||||
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1}
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBDColorQiecuoRecord) GetId() string {
|
func (x *DBDColorQiecuoRecord) GetId() string {
|
||||||
@ -307,7 +371,7 @@ type DBDColorRoomPlayer struct {
|
|||||||
func (x *DBDColorRoomPlayer) Reset() {
|
func (x *DBDColorRoomPlayer) Reset() {
|
||||||
*x = DBDColorRoomPlayer{}
|
*x = DBDColorRoomPlayer{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[2]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -320,7 +384,7 @@ func (x *DBDColorRoomPlayer) String() string {
|
|||||||
func (*DBDColorRoomPlayer) ProtoMessage() {}
|
func (*DBDColorRoomPlayer) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DBDColorRoomPlayer) ProtoReflect() protoreflect.Message {
|
func (x *DBDColorRoomPlayer) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[2]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[3]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -333,7 +397,7 @@ func (x *DBDColorRoomPlayer) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DBDColorRoomPlayer.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DBDColorRoomPlayer.ProtoReflect.Descriptor instead.
|
||||||
func (*DBDColorRoomPlayer) Descriptor() ([]byte, []int) {
|
func (*DBDColorRoomPlayer) Descriptor() ([]byte, []int) {
|
||||||
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{2}
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBDColorRoomPlayer) GetInfo() *BaseUserInfo {
|
func (x *DBDColorRoomPlayer) GetInfo() *BaseUserInfo {
|
||||||
@ -379,7 +443,7 @@ type DBDColorResult struct {
|
|||||||
func (x *DBDColorResult) Reset() {
|
func (x *DBDColorResult) Reset() {
|
||||||
*x = DBDColorResult{}
|
*x = DBDColorResult{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[3]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -392,7 +456,7 @@ func (x *DBDColorResult) String() string {
|
|||||||
func (*DBDColorResult) ProtoMessage() {}
|
func (*DBDColorResult) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DBDColorResult) ProtoReflect() protoreflect.Message {
|
func (x *DBDColorResult) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[3]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -405,7 +469,7 @@ func (x *DBDColorResult) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DBDColorResult.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DBDColorResult.ProtoReflect.Descriptor instead.
|
||||||
func (*DBDColorResult) Descriptor() ([]byte, []int) {
|
func (*DBDColorResult) Descriptor() ([]byte, []int) {
|
||||||
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{3}
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBDColorResult) GetIndex() int32 {
|
func (x *DBDColorResult) GetIndex() int32 {
|
||||||
@ -459,7 +523,7 @@ type DBDColorRoom struct {
|
|||||||
func (x *DBDColorRoom) Reset() {
|
func (x *DBDColorRoom) Reset() {
|
||||||
*x = DBDColorRoom{}
|
*x = DBDColorRoom{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[4]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -472,7 +536,7 @@ func (x *DBDColorRoom) String() string {
|
|||||||
func (*DBDColorRoom) ProtoMessage() {}
|
func (*DBDColorRoom) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DBDColorRoom) ProtoReflect() protoreflect.Message {
|
func (x *DBDColorRoom) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_dcolor_dcolor_db_proto_msgTypes[4]
|
mi := &file_dcolor_dcolor_db_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -485,7 +549,7 @@ func (x *DBDColorRoom) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DBDColorRoom.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DBDColorRoom.ProtoReflect.Descriptor instead.
|
||||||
func (*DBDColorRoom) Descriptor() ([]byte, []int) {
|
func (*DBDColorRoom) Descriptor() ([]byte, []int) {
|
||||||
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{4}
|
return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBDColorRoom) GetRid() string {
|
func (x *DBDColorRoom) GetRid() string {
|
||||||
@ -528,69 +592,74 @@ var File_dcolor_dcolor_db_proto protoreflect.FileDescriptor
|
|||||||
var file_dcolor_dcolor_db_proto_rawDesc = []byte{
|
var file_dcolor_dcolor_db_proto_rawDesc = []byte{
|
||||||
0x0a, 0x16, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2f, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f,
|
0x0a, 0x16, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2f, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f,
|
||||||
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70,
|
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x14, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72,
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x08, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72,
|
||||||
0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03,
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
||||||
0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1c,
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
||||||
0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x03,
|
||||||
0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xfe, 0x01, 0x0a,
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x22, 0x46,
|
||||||
0x14, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x52,
|
0x0a, 0x14, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f,
|
||||||
0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65,
|
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d,
|
||||||
0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xfe, 0x01, 0x0a, 0x14, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
||||||
0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52,
|
0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12,
|
||||||
0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x74, 0x74, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
|
|
||||||
0x52, 0x06, 0x62, 0x61, 0x74, 0x74, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66,
|
|
||||||
0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44,
|
|
||||||
0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74,
|
|
||||||
0x79, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a,
|
|
||||||
0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52,
|
|
||||||
0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18,
|
|
||||||
0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x77, 0x0a,
|
|
||||||
0x12, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61,
|
|
||||||
0x79, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
||||||
0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
|
|
||||||
0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x61, 0x69, 0x18, 0x02,
|
|
||||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x61, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65,
|
|
||||||
0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79,
|
|
||||||
0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
||||||
0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
|
||||||
0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64,
|
|
||||||
0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12,
|
|
||||||
0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69,
|
0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69,
|
||||||
0x64, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03,
|
0x64, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03,
|
||||||
0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c,
|
0x28, 0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65,
|
||||||
0x6f, 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61,
|
0x63, 0x75, 0x6f, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65,
|
||||||
0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61,
|
0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01,
|
||||||
0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70,
|
0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61,
|
||||||
0x61, 0x69, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70,
|
0x74, 0x74, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x74, 0x74,
|
||||||
0x61, 0x69, 0x72, 0x22, 0xc5, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72,
|
0x69, 0x64, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79,
|
||||||
0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f,
|
||||||
0x09, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
|
0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69, 0x66,
|
||||||
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c,
|
0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61,
|
||||||
0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
|
0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12,
|
||||||
0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e,
|
0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52,
|
||||||
0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79,
|
0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x77, 0x0a, 0x12, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
||||||
0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18,
|
0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x21, 0x0a,
|
||||||
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72,
|
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61,
|
||||||
0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65,
|
0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f,
|
||||||
0x12, 0x29, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
|
0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x61, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04,
|
||||||
0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75,
|
0x69, 0x73, 0x61, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20,
|
||||||
0x6c, 0x74, 0x52, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2a, 0x3a, 0x0a, 0x12, 0x44,
|
0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63,
|
||||||
0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74,
|
0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65,
|
||||||
0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a,
|
0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73,
|
||||||
0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x10, 0x01, 0x12, 0x08, 0x0a,
|
0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x04, 0x48, 0x65, 0x6c, 0x6c, 0x10, 0x02, 0x2a, 0x77, 0x0a, 0x0d, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
||||||
0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x72,
|
||||||
0x72, 0x5f, 0x30, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x31,
|
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44,
|
||||||
0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x32, 0x10, 0x02, 0x12,
|
0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x07, 0x72, 0x65,
|
||||||
0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x33, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07,
|
0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68,
|
||||||
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x34, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c,
|
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68,
|
||||||
0x6f, 0x72, 0x5f, 0x35, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f,
|
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x18, 0x05, 0x20,
|
||||||
0x36, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x37, 0x10, 0x07,
|
0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x22, 0xc5, 0x01,
|
||||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x0a, 0x0c, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x10,
|
||||||
|
0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64,
|
||||||
|
0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
||||||
|
0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f,
|
||||||
|
0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65,
|
||||||
|
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c,
|
||||||
|
0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x03, 0x72, 0x65,
|
||||||
|
0x64, 0x12, 0x27, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c,
|
||||||
|
0x61, 0x79, 0x65, 0x72, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x68, 0x61,
|
||||||
|
0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42,
|
||||||
|
0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x68, 0x61,
|
||||||
|
0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2a, 0x3a, 0x0a, 0x12, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f,
|
||||||
|
0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53,
|
||||||
|
0x69, 0x6d, 0x70, 0x6c, 0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69,
|
||||||
|
0x63, 0x75, 0x6c, 0x74, 0x79, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x6c, 0x10,
|
||||||
|
0x02, 0x2a, 0x77, 0x0a, 0x0d, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c,
|
||||||
|
0x6f, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x30, 0x10, 0x00, 0x12,
|
||||||
|
0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x31, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
|
||||||
|
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x32, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c,
|
||||||
|
0x6f, 0x72, 0x5f, 0x33, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f,
|
||||||
|
0x34, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x35, 0x10, 0x05,
|
||||||
|
0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x36, 0x10, 0x06, 0x12, 0x0b, 0x0a,
|
||||||
|
0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x37, 0x10, 0x07, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||||
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -606,26 +675,27 @@ func file_dcolor_dcolor_db_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_dcolor_dcolor_db_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
var file_dcolor_dcolor_db_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||||
var file_dcolor_dcolor_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
var file_dcolor_dcolor_db_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||||
var file_dcolor_dcolor_db_proto_goTypes = []interface{}{
|
var file_dcolor_dcolor_db_proto_goTypes = []interface{}{
|
||||||
(DBDColorDifficulty)(0), // 0: DBDColorDifficulty
|
(DBDColorDifficulty)(0), // 0: DBDColorDifficulty
|
||||||
(DBDColorColor)(0), // 1: DBDColorColor
|
(DBDColorColor)(0), // 1: DBDColorColor
|
||||||
(*DBDColorQiecuoInvite)(nil), // 2: DBDColorQiecuoInvite
|
(*DBDColor)(nil), // 2: DBDColor
|
||||||
(*DBDColorQiecuoRecord)(nil), // 3: DBDColorQiecuoRecord
|
(*DBDColorQiecuoInvite)(nil), // 3: DBDColorQiecuoInvite
|
||||||
(*DBDColorRoomPlayer)(nil), // 4: DBDColorRoomPlayer
|
(*DBDColorQiecuoRecord)(nil), // 4: DBDColorQiecuoRecord
|
||||||
(*DBDColorResult)(nil), // 5: DBDColorResult
|
(*DBDColorRoomPlayer)(nil), // 5: DBDColorRoomPlayer
|
||||||
(*DBDColorRoom)(nil), // 6: DBDColorRoom
|
(*DBDColorResult)(nil), // 6: DBDColorResult
|
||||||
(*BaseUserInfo)(nil), // 7: BaseUserInfo
|
(*DBDColorRoom)(nil), // 7: DBDColorRoom
|
||||||
|
(*BaseUserInfo)(nil), // 8: BaseUserInfo
|
||||||
}
|
}
|
||||||
var file_dcolor_dcolor_db_proto_depIdxs = []int32{
|
var file_dcolor_dcolor_db_proto_depIdxs = []int32{
|
||||||
2, // 0: DBDColorQiecuoRecord.targets:type_name -> DBDColorQiecuoInvite
|
3, // 0: DBDColorQiecuoRecord.targets:type_name -> DBDColorQiecuoInvite
|
||||||
0, // 1: DBDColorQiecuoRecord.difficulty:type_name -> DBDColorDifficulty
|
0, // 1: DBDColorQiecuoRecord.difficulty:type_name -> DBDColorDifficulty
|
||||||
7, // 2: DBDColorRoomPlayer.info:type_name -> BaseUserInfo
|
8, // 2: DBDColorRoomPlayer.info:type_name -> BaseUserInfo
|
||||||
1, // 3: DBDColorResult.results:type_name -> DBDColorColor
|
1, // 3: DBDColorResult.results:type_name -> DBDColorColor
|
||||||
1, // 4: DBDColorRoom.results:type_name -> DBDColorColor
|
1, // 4: DBDColorRoom.results:type_name -> DBDColorColor
|
||||||
4, // 5: DBDColorRoom.red:type_name -> DBDColorRoomPlayer
|
5, // 5: DBDColorRoom.red:type_name -> DBDColorRoomPlayer
|
||||||
4, // 6: DBDColorRoom.blue:type_name -> DBDColorRoomPlayer
|
5, // 6: DBDColorRoom.blue:type_name -> DBDColorRoomPlayer
|
||||||
5, // 7: DBDColorRoom.handles:type_name -> DBDColorResult
|
6, // 7: DBDColorRoom.handles:type_name -> DBDColorResult
|
||||||
8, // [8:8] is the sub-list for method output_type
|
8, // [8:8] is the sub-list for method output_type
|
||||||
8, // [8:8] is the sub-list for method input_type
|
8, // [8:8] is the sub-list for method input_type
|
||||||
8, // [8:8] is the sub-list for extension type_name
|
8, // [8:8] is the sub-list for extension type_name
|
||||||
@ -641,7 +711,7 @@ func file_dcolor_dcolor_db_proto_init() {
|
|||||||
file_comm_proto_init()
|
file_comm_proto_init()
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_dcolor_dcolor_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_dcolor_dcolor_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DBDColorQiecuoInvite); i {
|
switch v := v.(*DBDColor); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -653,7 +723,7 @@ func file_dcolor_dcolor_db_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_dcolor_dcolor_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_dcolor_dcolor_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DBDColorQiecuoRecord); i {
|
switch v := v.(*DBDColorQiecuoInvite); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -665,7 +735,7 @@ func file_dcolor_dcolor_db_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_dcolor_dcolor_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
file_dcolor_dcolor_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DBDColorRoomPlayer); i {
|
switch v := v.(*DBDColorQiecuoRecord); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -677,7 +747,7 @@ func file_dcolor_dcolor_db_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_dcolor_dcolor_db_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_dcolor_dcolor_db_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DBDColorResult); i {
|
switch v := v.(*DBDColorRoomPlayer); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -689,6 +759,18 @@ func file_dcolor_dcolor_db_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_dcolor_dcolor_db_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_dcolor_dcolor_db_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBDColorResult); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dcolor_dcolor_db_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DBDColorRoom); i {
|
switch v := v.(*DBDColorRoom); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@ -707,7 +789,7 @@ func file_dcolor_dcolor_db_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_dcolor_dcolor_db_proto_rawDesc,
|
RawDescriptor: file_dcolor_dcolor_db_proto_rawDesc,
|
||||||
NumEnums: 2,
|
NumEnums: 2,
|
||||||
NumMessages: 5,
|
NumMessages: 6,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user