mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
dep: update proto code gen
This commit is contained in:
parent
b7b13c64b4
commit
8e5ac24d32
@ -234,7 +234,7 @@ func decodeGroupInfoResponse(c *QQClient, _ *incomingPacketInfo, payload []byte)
|
|||||||
if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil {
|
if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if len(rsp.GetStzrspgroupinfo()) == 0 {
|
if len(rsp.Stzrspgroupinfo) == 0 {
|
||||||
return nil, errors.New(string(rsp.Errorinfo))
|
return nil, errors.New(string(rsp.Errorinfo))
|
||||||
}
|
}
|
||||||
info := rsp.Stzrspgroupinfo[0]
|
info := rsp.Stzrspgroupinfo[0]
|
||||||
|
@ -204,20 +204,6 @@ type (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
func (x *GroupCardPrefix) GetIntroduction() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Introduction
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupCardPrefix) GetPrefix() [][]byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Prefix
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupCardPrefix) Marshal() ([]byte, error) {
|
func (x *GroupCardPrefix) Marshal() ([]byte, error) {
|
||||||
if x == nil {
|
if x == nil {
|
||||||
return nil, errors.New("nil pointer error")
|
return nil, errors.New("nil pointer error")
|
||||||
@ -281,13 +267,6 @@ func (x *GroupGeoInfo) GetLatitude() int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupGeoInfo) GetGeocontent() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Geocontent
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupGeoInfo) GetPoiId() uint64 {
|
func (x *GroupGeoInfo) GetPoiId() uint64 {
|
||||||
if x != nil && x.PoiId != nil {
|
if x != nil && x.PoiId != nil {
|
||||||
return *x.PoiId
|
return *x.PoiId
|
||||||
@ -309,13 +288,6 @@ func (x *GroupHeadPortrait) GetPicCnt() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupHeadPortrait) GetInfo() []*GroupHeadPortraitInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.Info
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupHeadPortrait) GetDefaultId() uint32 {
|
func (x *GroupHeadPortrait) GetDefaultId() uint32 {
|
||||||
if x != nil && x.DefaultId != nil {
|
if x != nil && x.DefaultId != nil {
|
||||||
return *x.DefaultId
|
return *x.DefaultId
|
||||||
@ -330,13 +302,6 @@ func (x *GroupHeadPortrait) GetVerifyingPicCnt() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupHeadPortrait) GetVerifyingpicInfo() []*GroupHeadPortraitInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.VerifyingpicInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupHeadPortrait) Marshal() ([]byte, error) {
|
func (x *GroupHeadPortrait) Marshal() ([]byte, error) {
|
||||||
if x == nil {
|
if x == nil {
|
||||||
return nil, errors.New("nil pointer error")
|
return nil, errors.New("nil pointer error")
|
||||||
@ -484,41 +449,6 @@ func (x *GroupInfo) GetGroupRoamingTime() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupName() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupName
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupMemo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupMemo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupFingerMemo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupFingerMemo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupClassText() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupClassText
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupAllianceCode() []*uint32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupAllianceCode
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupExtraAdmNum() uint32 {
|
func (x *GroupInfo) GetGroupExtraAdmNum() uint32 {
|
||||||
if x != nil && x.GroupExtraAdmNum != nil {
|
if x != nil && x.GroupExtraAdmNum != nil {
|
||||||
return *x.GroupExtraAdmNum
|
return *x.GroupExtraAdmNum
|
||||||
@ -547,20 +477,6 @@ func (x *GroupInfo) GetGroupLastMsgTime() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupQuestion() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupQuestion
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupAnswer() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupAnswer
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupVisitorMaxNum() uint32 {
|
func (x *GroupInfo) GetGroupVisitorMaxNum() uint32 {
|
||||||
if x != nil && x.GroupVisitorMaxNum != nil {
|
if x != nil && x.GroupVisitorMaxNum != nil {
|
||||||
return *x.GroupVisitorMaxNum
|
return *x.GroupVisitorMaxNum
|
||||||
@ -603,20 +519,6 @@ func (x *GroupInfo) GetGroupBoardSkinTimestamp() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupAioSkinUrl() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupAioSkinUrl
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupBoardSkinUrl() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupBoardSkinUrl
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupCoverSkinTimestamp() uint32 {
|
func (x *GroupInfo) GetGroupCoverSkinTimestamp() uint32 {
|
||||||
if x != nil && x.GroupCoverSkinTimestamp != nil {
|
if x != nil && x.GroupCoverSkinTimestamp != nil {
|
||||||
return *x.GroupCoverSkinTimestamp
|
return *x.GroupCoverSkinTimestamp
|
||||||
@ -624,13 +526,6 @@ func (x *GroupInfo) GetGroupCoverSkinTimestamp() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupCoverSkinUrl() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupCoverSkinUrl
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupGrade() uint32 {
|
func (x *GroupInfo) GetGroupGrade() uint32 {
|
||||||
if x != nil && x.GroupGrade != nil {
|
if x != nil && x.GroupGrade != nil {
|
||||||
return *x.GroupGrade
|
return *x.GroupGrade
|
||||||
@ -652,34 +547,6 @@ func (x *GroupInfo) GetCertificationType() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetCertificationText() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.CertificationText
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupRichFingerMemo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupRichFingerMemo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetTagRecord() []*TagRecord {
|
|
||||||
if x != nil {
|
|
||||||
return x.TagRecord
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupGeoInfo() *GroupGeoInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupGeoInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetHeadPortraitSeq() uint32 {
|
func (x *GroupInfo) GetHeadPortraitSeq() uint32 {
|
||||||
if x != nil && x.HeadPortraitSeq != nil {
|
if x != nil && x.HeadPortraitSeq != nil {
|
||||||
return *x.HeadPortraitSeq
|
return *x.HeadPortraitSeq
|
||||||
@ -687,13 +554,6 @@ func (x *GroupInfo) GetHeadPortraitSeq() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetHeadPortrait() *GroupHeadPortrait {
|
|
||||||
if x != nil {
|
|
||||||
return x.HeadPortrait
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetShutupTimestamp() uint32 {
|
func (x *GroupInfo) GetShutupTimestamp() uint32 {
|
||||||
if x != nil && x.ShutupTimestamp != nil {
|
if x != nil && x.ShutupTimestamp != nil {
|
||||||
return *x.ShutupTimestamp
|
return *x.ShutupTimestamp
|
||||||
@ -778,13 +638,6 @@ func (x *GroupInfo) GetAppPrivilegeFlag() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetStGroupExInfo() *GroupExInfoOnly {
|
|
||||||
if x != nil {
|
|
||||||
return x.StGroupExInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupSecLevel() uint32 {
|
func (x *GroupInfo) GetGroupSecLevel() uint32 {
|
||||||
if x != nil && x.GroupSecLevel != nil {
|
if x != nil && x.GroupSecLevel != nil {
|
||||||
return *x.GroupSecLevel
|
return *x.GroupSecLevel
|
||||||
@ -806,13 +659,6 @@ func (x *GroupInfo) GetCmduinPrivilege() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetPoidInfo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.PoidInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetCmduinFlagEx2() uint32 {
|
func (x *GroupInfo) GetCmduinFlagEx2() uint32 {
|
||||||
if x != nil && x.CmduinFlagEx2 != nil {
|
if x != nil && x.CmduinFlagEx2 != nil {
|
||||||
return *x.CmduinFlagEx2
|
return *x.CmduinFlagEx2
|
||||||
@ -1002,13 +848,6 @@ func (x *GroupInfo) GetIsAllowConfGroupMemberModifyGroupName() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetLongGroupName() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.LongGroupName
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetCmduinJoinRealMsgSeq() uint32 {
|
func (x *GroupInfo) GetCmduinJoinRealMsgSeq() uint32 {
|
||||||
if x != nil && x.CmduinJoinRealMsgSeq != nil {
|
if x != nil && x.CmduinJoinRealMsgSeq != nil {
|
||||||
return *x.CmduinJoinRealMsgSeq
|
return *x.CmduinJoinRealMsgSeq
|
||||||
@ -1030,13 +869,6 @@ func (x *GroupInfo) GetMsgLimitFrequency() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetJoinGroupAuth() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.JoinGroupAuth
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetHlGuildAppid() uint32 {
|
func (x *GroupInfo) GetHlGuildAppid() uint32 {
|
||||||
if x != nil && x.HlGuildAppid != nil {
|
if x != nil && x.HlGuildAppid != nil {
|
||||||
return *x.HlGuildAppid
|
return *x.HlGuildAppid
|
||||||
@ -1100,13 +932,6 @@ func (x *GroupInfo) GetImportantMsgLatestSeq() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetGroupSchoolInfo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.GroupSchoolInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetAppealDeadline() uint32 {
|
func (x *GroupInfo) GetAppealDeadline() uint32 {
|
||||||
if x != nil && x.AppealDeadline != nil {
|
if x != nil && x.AppealDeadline != nil {
|
||||||
return *x.AppealDeadline
|
return *x.AppealDeadline
|
||||||
@ -1114,13 +939,6 @@ func (x *GroupInfo) GetAppealDeadline() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetStGroupCardPrefix() *GroupCardPrefix {
|
|
||||||
if x != nil {
|
|
||||||
return x.StGroupCardPrefix
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetAllianceId() uint64 {
|
func (x *GroupInfo) GetAllianceId() uint64 {
|
||||||
if x != nil && x.AllianceId != nil {
|
if x != nil && x.AllianceId != nil {
|
||||||
return *x.AllianceId
|
return *x.AllianceId
|
||||||
@ -1142,20 +960,6 @@ func (x *GroupInfo) GetGroupInfoExtSeq() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfo) GetStGroupInfoExt() *GroupInfoExt {
|
|
||||||
if x != nil {
|
|
||||||
return x.StGroupInfoExt
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) GetCmduinGroupRemarkName() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.CmduinGroupRemarkName
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfo) Marshal() ([]byte, error) {
|
func (x *GroupInfo) Marshal() ([]byte, error) {
|
||||||
if x == nil {
|
if x == nil {
|
||||||
return nil, errors.New("nil pointer error")
|
return nil, errors.New("nil pointer error")
|
||||||
@ -1170,13 +974,6 @@ func (x *ReqBody) GetAppid() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ReqBody) GetStzreqgroupinfo() []*ReqGroupInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.Stzreqgroupinfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ReqBody) GetPcClientVersion() uint32 {
|
func (x *ReqBody) GetPcClientVersion() uint32 {
|
||||||
if x != nil && x.PcClientVersion != nil {
|
if x != nil && x.PcClientVersion != nil {
|
||||||
return *x.PcClientVersion
|
return *x.PcClientVersion
|
||||||
@ -1198,13 +995,6 @@ func (x *ReqGroupInfo) GetGroupCode() uint64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ReqGroupInfo) GetStgroupinfo() *GroupInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.Stgroupinfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ReqGroupInfo) GetLastGetGroupNameTime() uint32 {
|
func (x *ReqGroupInfo) GetLastGetGroupNameTime() uint32 {
|
||||||
if x != nil && x.LastGetGroupNameTime != nil {
|
if x != nil && x.LastGetGroupNameTime != nil {
|
||||||
return *x.LastGetGroupNameTime
|
return *x.LastGetGroupNameTime
|
||||||
@ -1219,20 +1009,6 @@ func (x *ReqGroupInfo) Marshal() ([]byte, error) {
|
|||||||
return protobuf.Encode(x)
|
return protobuf.Encode(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RspBody) GetStzrspgroupinfo() []*RspGroupInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.Stzrspgroupinfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *RspBody) GetErrorinfo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Errorinfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *RspBody) Marshal() ([]byte, error) {
|
func (x *RspBody) Marshal() ([]byte, error) {
|
||||||
if x == nil {
|
if x == nil {
|
||||||
return nil, errors.New("nil pointer error")
|
return nil, errors.New("nil pointer error")
|
||||||
@ -1254,13 +1030,6 @@ func (x *RspGroupInfo) GetResult() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RspGroupInfo) GetStgroupinfo() *GroupInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.Stgroupinfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *RspGroupInfo) Marshal() ([]byte, error) {
|
func (x *RspGroupInfo) Marshal() ([]byte, error) {
|
||||||
if x == nil {
|
if x == nil {
|
||||||
return nil, errors.New("nil pointer error")
|
return nil, errors.New("nil pointer error")
|
||||||
@ -1282,13 +1051,6 @@ func (x *TagRecord) GetGroupCode() uint64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TagRecord) GetTagId() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.TagId
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TagRecord) GetSetTime() uint64 {
|
func (x *TagRecord) GetSetTime() uint64 {
|
||||||
if x != nil && x.SetTime != nil {
|
if x != nil && x.SetTime != nil {
|
||||||
return *x.SetTime
|
return *x.SetTime
|
||||||
@ -1317,13 +1079,6 @@ func (x *TagRecord) GetTagLen() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TagRecord) GetTagValue() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.TagValue
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TagRecord) Marshal() ([]byte, error) {
|
func (x *TagRecord) Marshal() ([]byte, error) {
|
||||||
if x == nil {
|
if x == nil {
|
||||||
return nil, errors.New("nil pointer error")
|
return nil, errors.New("nil pointer error")
|
||||||
@ -1352,13 +1107,6 @@ func (x *GroupInfoExt) GetLightCharNum() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GroupInfoExt) GetLuckyWord() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.LuckyWord
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GroupInfoExt) GetStarId() uint32 {
|
func (x *GroupInfoExt) GetStarId() uint32 {
|
||||||
if x != nil && x.StarId != nil {
|
if x != nil && x.StarId != nil {
|
||||||
return *x.StarId
|
return *x.StarId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user