上传页面工具代码

This commit is contained in:
liwei1dao 2022-09-01 15:26:32 +08:00
parent b4007d4b97
commit 7730929c47
4 changed files with 103 additions and 45 deletions

View File

@ -17,6 +17,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
System: 4 System: 4
} }
}, },
ChatType: {
values: {
Text: 0,
Moonfantasy: 1
}
},
DBChat: { DBChat: {
fields: { fields: {
id: { id: {
@ -27,45 +33,61 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "ChatChannel", type: "ChatChannel",
id: 2 id: 2
}, },
ctype: {
type: "ChatType",
id: 3
},
suid: { suid: {
type: "string", type: "string",
id: 3 id: 4
}, },
slv: { slv: {
type: "int32", type: "int32",
id: 4 id: 5
}, },
ruid: { ruid: {
type: "string", type: "string",
id: 5 id: 6
}, },
channelId: { channelId: {
type: "int32", type: "int32",
id: 6 id: 7
}, },
unionId: { unionId: {
type: "string", type: "string",
id: 7 id: 8
}, },
stag: { stag: {
type: "string", type: "string",
id: 8 id: 9
}, },
avatar: { avatar: {
type: "string", type: "string",
id: 9 id: 10
}, },
uname: { uname: {
type: "string", type: "string",
id: 10 id: 11
}, },
content: { content: {
type: "string", type: "string",
id: 11 id: 12
}, },
ctime: { ctime: {
type: "int64", type: "int64",
id: 12 id: 13
},
appendInt: {
type: "int64",
id: 14
},
appendStr: {
type: "string",
id: 15
},
appendBool: {
type: "string",
id: 16
} }
} }
}, },
@ -2457,7 +2479,20 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
}, },
MoonfantasyTriggerReq: { MoonfantasyTriggerReq: {
fields: {} fields: {
avatar: {
type: "string",
id: 1
},
uname: {
type: "string",
id: 2
},
ulv: {
type: "int32",
id: 3
}
}
}, },
MoonfantasyTriggerResp: { MoonfantasyTriggerResp: {
fields: { fields: {

View File

@ -9,18 +9,27 @@ enum ChatChannel {
System = 4; // System = 4; //
} }
//
enum ChatType {
Text = 0; //
Moonfantasy = 1; //
}
message DBChat { message DBChat {
string id =1; //id string id = 1; //@go_tags(`bson:"_id"`) ID
ChatChannel channel = 2; // ChatChannel channel = 2; //
string suid =3; //id ChatType ctype = 3; //
int32 slv = 4; // string suid = 4; //id
string ruid = 5; //id channel == Private int32 slv = 5; //
int32 channelId = 6; // Id string ruid = 6; //id channel == Private
string unionId = 7; //id int32 channelId = 7; // Id
string stag = 8; //id string unionId = 8; //id
string avatar = 9; // string stag = 9; //id
string uname = 10; // string avatar = 10; //
string content = 11; // string uname = 11; //
int64 ctime = 12; // string content = 12; //
int64 ctime = 13; //
int64 appendInt = 14; //@go_tags(`bson:"appendInt"`)
string appendStr = 15; //@go_tags(`bson:"appendStr"`)
string appendBool = 16; //@go_tags(`bson:"appendBool"`)
} }

View File

@ -3,15 +3,23 @@ option go_package = ".;pb";
import "chat_db.proto"; import "chat_db.proto";
// //
message ChatMessagePush { DBChat chat = 1; } message ChatMessagePush{
DBChat chat = 1;
}
// //
message ChatCrossChannelReq {} message ChatCrossChannelReq {
}
// //
message ChatCrossChannelResp { int32 channelId = 1; } message ChatCrossChannelResp {
int32 channelId = 1;
}
// //
message ChatChanageChannelReq { int32 channelId = 1; } message ChatChanageChannelReq {
int32 channelId = 1;
}
// //
message ChatChanageChannelResp { message ChatChanageChannelResp {
int32 channelId = 1; int32 channelId = 1;
@ -25,7 +33,9 @@ message ChatGetListReq {
} }
// //
message ChatGetListResp { repeated DBChat chats = 1; } message ChatGetListResp {
repeated DBChat chats = 1;
}
// //
message ChatSendReq { message ChatSendReq {

View File

@ -2,7 +2,11 @@ syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
/// ///
message MoonfantasyTriggerReq {} message MoonfantasyTriggerReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
}
/// ///
message MoonfantasyTriggerResp { message MoonfantasyTriggerResp {