danielgtaylor / danielgtaylor/python-betterproto

Protoc proto file , AccountInfo -> CcountInfo, why and how to solve

Open
#423 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.8k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

message LoginInfo {
optional string login_channel = 1;
optional string open_id = 2; //
optional DeviceInfo deviceInfo = 3;
optional AccountInfo accountInfo = 4;
optional int64 robotIntoId = 5;
}

@dataclass
class LoginInfo(betterproto.Message):
login_channel: str = betterproto.string_field(1)
open_id: str = betterproto.string_field(2)
device_info: "DeviceInfo" = betterproto.message_field(3)
account_info: "CcountInfo" = betterproto.message_field(4)
robot_into_id: int = betterproto.int64_field(5)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.