From a8a04fc5887e99ffcf61e2b673dd778878515b2b Mon Sep 17 00:00:00 2001 From: Asnxthaony Date: Fri, 22 Apr 2022 14:40:19 +0800 Subject: [PATCH] Added some proto related to mail stuff --- proto/ChangeMailStarNotify.proto | 8 ++++++++ proto/DelMailReq.proto | 7 +++++++ proto/DelMailRsp.proto | 8 ++++++++ proto/EquipParam.proto | 10 ++++++++++ proto/GetAllMailReq.proto | 7 +++++++ proto/GetAllMailRsp.proto | 11 +++++++++++ proto/GetMailItemReq.proto | 7 +++++++ proto/GetMailItemRsp.proto | 11 +++++++++++ proto/MailChangeNotify.proto | 10 ++++++++++ proto/MailData.proto | 20 ++++++++++++++++++++ proto/MailItem.proto | 11 +++++++++++ proto/MailTextContent.proto | 9 +++++++++ proto/ReadMailNotify.proto | 7 +++++++ 13 files changed, 126 insertions(+) create mode 100644 proto/ChangeMailStarNotify.proto create mode 100644 proto/DelMailReq.proto create mode 100644 proto/DelMailRsp.proto create mode 100644 proto/EquipParam.proto create mode 100644 proto/GetAllMailReq.proto create mode 100644 proto/GetAllMailRsp.proto create mode 100644 proto/GetMailItemReq.proto create mode 100644 proto/GetMailItemRsp.proto create mode 100644 proto/MailChangeNotify.proto create mode 100644 proto/MailData.proto create mode 100644 proto/MailItem.proto create mode 100644 proto/MailTextContent.proto create mode 100644 proto/ReadMailNotify.proto diff --git a/proto/ChangeMailStarNotify.proto b/proto/ChangeMailStarNotify.proto new file mode 100644 index 0000000..05e5b22 --- /dev/null +++ b/proto/ChangeMailStarNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMailStarNotify { + repeated uint32 mailIdList = 1; + bool isStar = 2; +} diff --git a/proto/DelMailReq.proto b/proto/DelMailReq.proto new file mode 100644 index 0000000..5f07ac0 --- /dev/null +++ b/proto/DelMailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelMailReq { + repeated uint32 mailIdList = 1; +} diff --git a/proto/DelMailRsp.proto b/proto/DelMailRsp.proto new file mode 100644 index 0000000..2fd5a7b --- /dev/null +++ b/proto/DelMailRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelMailRsp { + int32 retcode = 1; + repeated uint32 mailIdList = 2; +} diff --git a/proto/EquipParam.proto b/proto/EquipParam.proto new file mode 100644 index 0000000..047ce4b --- /dev/null +++ b/proto/EquipParam.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EquipParam { + uint32 itemId = 1; + uint32 itemNum = 2; + uint32 itemLevel = 3; + uint32 PromoteLevel = 4; +} diff --git a/proto/GetAllMailReq.proto b/proto/GetAllMailReq.proto new file mode 100644 index 0000000..d116e09 --- /dev/null +++ b/proto/GetAllMailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAllMailReq { + bool isGiftMail = 1; +} diff --git a/proto/GetAllMailRsp.proto b/proto/GetAllMailRsp.proto new file mode 100644 index 0000000..6c7d7f3 --- /dev/null +++ b/proto/GetAllMailRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailData.proto"; + +message GetAllMailRsp { + int32 retcode = 1; + repeated MailData mailList = 2; + bool isTruncated = 3; +} diff --git a/proto/GetMailItemReq.proto b/proto/GetMailItemReq.proto new file mode 100644 index 0000000..df20fdc --- /dev/null +++ b/proto/GetMailItemReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetMailItemReq { + repeated uint32 mailIdList = 1; +} diff --git a/proto/GetMailItemRsp.proto b/proto/GetMailItemRsp.proto new file mode 100644 index 0000000..4eb3017 --- /dev/null +++ b/proto/GetMailItemRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EquipParam.proto"; + +message GetMailItemRsp { + int32 retcode = 1; + repeated uint32 mailIdList = 2; + repeated EquipParam itemList = 3; +} diff --git a/proto/MailChangeNotify.proto b/proto/MailChangeNotify.proto new file mode 100644 index 0000000..0fe80b2 --- /dev/null +++ b/proto/MailChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailData.proto"; + +message MailChangeNotify { + repeated MailData mailList = 1; + repeated uint32 delMailIdList = 2; +} diff --git a/proto/MailData.proto b/proto/MailData.proto new file mode 100644 index 0000000..fe74217 --- /dev/null +++ b/proto/MailData.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailTextContent.proto"; +import "MailItem.proto"; + +message MailData { + uint32 mailId = 1; + MailTextContent mailTextContent = 4; + repeated MailItem itemList = 7; + uint32 sendTime = 8; + uint32 expireTime = 9; + uint32 importance = 10; + bool isRead = 11; + bool isAttachmentGot = 12; + uint32 configId = 13; + repeated string argumentList = 14; + uint32 stateValue = 15; +} diff --git a/proto/MailItem.proto b/proto/MailItem.proto new file mode 100644 index 0000000..72bcb8e --- /dev/null +++ b/proto/MailItem.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; +import "MaterialDeleteInfo.proto"; + +message MailItem { + ItemParam itemParam = 1; + MaterialDeleteInfo deleteInfo = 2; +} diff --git a/proto/MailTextContent.proto b/proto/MailTextContent.proto new file mode 100644 index 0000000..097710f --- /dev/null +++ b/proto/MailTextContent.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MailTextContent { + string title = 1; + string content = 2; + string sender = 3; +} diff --git a/proto/ReadMailNotify.proto b/proto/ReadMailNotify.proto new file mode 100644 index 0000000..d48c0d5 --- /dev/null +++ b/proto/ReadMailNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReadMailNotify { + repeated uint32 mailIdList = 1; +}