1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-07 20:45:53 +08:00
2021-11-07 13:14:05 +08:00

104 lines
2.3 KiB
Go

// Code generated by yaprotoc. DO NOT EDIT.
// source: oidb/0x8a7.proto
package oidb0x8a7
import (
"github.com/pkg/errors"
"github.com/segmentio/encoding/proto"
)
type ReqBody struct {
SubCmd *uint32 `protobuf:"varint,1,opt"`
LimitIntervalTypeForUin *uint32 `protobuf:"varint,2,opt"`
LimitIntervalTypeForGroup *uint32 `protobuf:"varint,3,opt"`
Uin *uint64 `protobuf:"varint,4,opt"`
GroupCode *uint64 `protobuf:"varint,5,opt"`
}
func (x *ReqBody) GetSubCmd() uint32 {
if x != nil && x.SubCmd != nil {
return *x.SubCmd
}
return 0
}
func (x *ReqBody) GetLimitIntervalTypeForUin() uint32 {
if x != nil && x.LimitIntervalTypeForUin != nil {
return *x.LimitIntervalTypeForUin
}
return 0
}
func (x *ReqBody) GetLimitIntervalTypeForGroup() uint32 {
if x != nil && x.LimitIntervalTypeForGroup != nil {
return *x.LimitIntervalTypeForGroup
}
return 0
}
func (x *ReqBody) GetUin() uint64 {
if x != nil && x.Uin != nil {
return *x.Uin
}
return 0
}
func (x *ReqBody) GetGroupCode() uint64 {
if x != nil && x.GroupCode != nil {
return *x.GroupCode
}
return 0
}
func (x *ReqBody) Marshal() ([]byte, error) {
if x == nil {
return nil, errors.New("nil message")
}
return proto.Marshal(x)
}
type RspBody struct {
CanAtAll *bool `protobuf:"varint,1,opt"`
RemainAtAllCountForUin *uint32 `protobuf:"varint,2,opt"`
RemainAtAllCountForGroup *uint32 `protobuf:"varint,3,opt"`
PromptMsg1 []byte `protobuf:"bytes,4,opt"`
PromptMsg2 []byte `protobuf:"bytes,5,opt"`
ShowAtAllLable *bool `protobuf:"varint,6,opt"`
}
func (x *RspBody) GetCanAtAll() bool {
if x != nil && x.CanAtAll != nil {
return *x.CanAtAll
}
return false
}
func (x *RspBody) GetRemainAtAllCountForUin() uint32 {
if x != nil && x.RemainAtAllCountForUin != nil {
return *x.RemainAtAllCountForUin
}
return 0
}
func (x *RspBody) GetRemainAtAllCountForGroup() uint32 {
if x != nil && x.RemainAtAllCountForGroup != nil {
return *x.RemainAtAllCountForGroup
}
return 0
}
func (x *RspBody) GetShowAtAllLable() bool {
if x != nil && x.ShowAtAllLable != nil {
return *x.ShowAtAllLable
}
return false
}
func (x *RspBody) Marshal() ([]byte, error) {
if x == nil {
return nil, errors.New("nil message")
}
return proto.Marshal(x)
}