feat 协议

This commit is contained in:
2026-01-10 10:44:06 +08:00
parent a73797b3bc
commit 4b8db63ba4

View File

@@ -22,6 +22,7 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// ---------- Login ----------
type LoginReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -132,6 +133,7 @@ func (x *LoginResp) GetName() string {
return ""
}
// ---------- GetUserInfo ----------
type GetUserInfoReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -234,6 +236,7 @@ func (x *GetUserInfoResp) GetName() string {
return ""
}
// ---------- GenerateQuestion ----------
type GenerateQuestionReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -319,6 +322,7 @@ func (*GenerateQuestionResp) Descriptor() ([]byte, []int) {
return file_service_user_proto_rawDescGZIP(), []int{5}
}
// ---------- GetQuestion ----------
type GetQuestionReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -420,6 +424,7 @@ func (x *GetQuestionResp) GetOptions() []string {
return nil
}
// ---------- AnswerQuestion ----------
type AnswerQuestionReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache