|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
// source: api/v1/user.proto
|
|
|
|
|
|
package v1
|
|
|
|
|
|
import (
|
|
|
context "context"
|
|
|
fmt "fmt"
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
status "google.golang.org/grpc/status"
|
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
|
_ "google.golang.org/protobuf/types/known/timestamppb"
|
|
|
io "io"
|
|
|
math "math"
|
|
|
math_bits "math/bits"
|
|
|
time "time"
|
|
|
)
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ = proto.Marshal
|
|
|
var _ = fmt.Errorf
|
|
|
var _ = math.Inf
|
|
|
var _ = time.Kitchen
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
// proto package needs to be updated.
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
type EmailCodeType int32
|
|
|
|
|
|
const (
|
|
|
EmailCodeType_EmailCodeTypeRegister EmailCodeType = 0
|
|
|
EmailCodeType_EmailCodeTypeLogin EmailCodeType = 1
|
|
|
)
|
|
|
|
|
|
var EmailCodeType_name = map[int32]string{
|
|
|
0: "EmailCodeTypeRegister",
|
|
|
1: "EmailCodeTypeLogin",
|
|
|
}
|
|
|
|
|
|
var EmailCodeType_value = map[string]int32{
|
|
|
"EmailCodeTypeRegister": 0,
|
|
|
"EmailCodeTypeLogin": 1,
|
|
|
}
|
|
|
|
|
|
func (x EmailCodeType) String() string {
|
|
|
return proto.EnumName(EmailCodeType_name, int32(x))
|
|
|
}
|
|
|
|
|
|
func (EmailCodeType) EnumDescriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{0}
|
|
|
}
|
|
|
|
|
|
// 用户信息
|
|
|
type User struct {
|
|
|
LoginAt *time.Time `protobuf:"bytes,19,opt,name=login_at,json=loginAt,proto3,stdtime" json:"login_at,omitempty"`
|
|
|
CreatedAt *time.Time `protobuf:"bytes,20,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"`
|
|
|
UpdatedAt *time.Time `protobuf:"bytes,21,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"`
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
|
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
Signature string `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
|
LastLoginIp string `protobuf:"bytes,7,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"`
|
|
|
RegisterIp string `protobuf:"bytes,8,opt,name=register_ip,json=registerIp,proto3" json:"register_ip,omitempty"`
|
|
|
DocCount int32 `protobuf:"varint,9,opt,name=doc_count,json=docCount,proto3" json:"doc_count,omitempty"`
|
|
|
FollowCount int32 `protobuf:"varint,10,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"`
|
|
|
FansCount int32 `protobuf:"varint,11,opt,name=fans_count,json=fansCount,proto3" json:"fans_count,omitempty"`
|
|
|
FavoriteCount int32 `protobuf:"varint,12,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"`
|
|
|
CommentCount int32 `protobuf:"varint,13,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"`
|
|
|
Status int32 `protobuf:"varint,14,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
Avatar string `protobuf:"bytes,15,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
|
Identity string `protobuf:"bytes,16,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
|
Realname string `protobuf:"bytes,17,opt,name=realname,proto3" json:"realname,omitempty"`
|
|
|
GroupId []int64 `protobuf:"varint,18,rep,packed,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
|
CreditCount int32 `protobuf:"varint,22,opt,name=credit_count,json=creditCount,proto3" json:"credit_count,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *User) Reset() { *m = User{} }
|
|
|
func (m *User) String() string { return proto.CompactTextString(m) }
|
|
|
func (*User) ProtoMessage() {}
|
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{0}
|
|
|
}
|
|
|
func (m *User) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_User.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *User) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_User.Merge(m, src)
|
|
|
}
|
|
|
func (m *User) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *User) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_User.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_User proto.InternalMessageInfo
|
|
|
|
|
|
func (m *User) GetLoginAt() *time.Time {
|
|
|
if m != nil {
|
|
|
return m.LoginAt
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *User) GetCreatedAt() *time.Time {
|
|
|
if m != nil {
|
|
|
return m.CreatedAt
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *User) GetUpdatedAt() *time.Time {
|
|
|
if m != nil {
|
|
|
return m.UpdatedAt
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *User) GetId() int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetUsername() string {
|
|
|
if m != nil {
|
|
|
return m.Username
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetMobile() string {
|
|
|
if m != nil {
|
|
|
return m.Mobile
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetEmail() string {
|
|
|
if m != nil {
|
|
|
return m.Email
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetAddress() string {
|
|
|
if m != nil {
|
|
|
return m.Address
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetSignature() string {
|
|
|
if m != nil {
|
|
|
return m.Signature
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetLastLoginIp() string {
|
|
|
if m != nil {
|
|
|
return m.LastLoginIp
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetRegisterIp() string {
|
|
|
if m != nil {
|
|
|
return m.RegisterIp
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetDocCount() int32 {
|
|
|
if m != nil {
|
|
|
return m.DocCount
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetFollowCount() int32 {
|
|
|
if m != nil {
|
|
|
return m.FollowCount
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetFansCount() int32 {
|
|
|
if m != nil {
|
|
|
return m.FansCount
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetFavoriteCount() int32 {
|
|
|
if m != nil {
|
|
|
return m.FavoriteCount
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetCommentCount() int32 {
|
|
|
if m != nil {
|
|
|
return m.CommentCount
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetStatus() int32 {
|
|
|
if m != nil {
|
|
|
return m.Status
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *User) GetAvatar() string {
|
|
|
if m != nil {
|
|
|
return m.Avatar
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetIdentity() string {
|
|
|
if m != nil {
|
|
|
return m.Identity
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetRealname() string {
|
|
|
if m != nil {
|
|
|
return m.Realname
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *User) GetGroupId() []int64 {
|
|
|
if m != nil {
|
|
|
return m.GroupId
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *User) GetCreditCount() int32 {
|
|
|
if m != nil {
|
|
|
return m.CreditCount
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// 用户注册登录请求
|
|
|
type RegisterAndLoginRequest struct {
|
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" validate:"min=3,max=32"`
|
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" validate:"min=6"`
|
|
|
Captcha string `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
|
|
|
CaptchaId string `protobuf:"bytes,4,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"`
|
|
|
Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
Code string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) Reset() { *m = RegisterAndLoginRequest{} }
|
|
|
func (m *RegisterAndLoginRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*RegisterAndLoginRequest) ProtoMessage() {}
|
|
|
func (*RegisterAndLoginRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{1}
|
|
|
}
|
|
|
func (m *RegisterAndLoginRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *RegisterAndLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_RegisterAndLoginRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *RegisterAndLoginRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_RegisterAndLoginRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *RegisterAndLoginRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *RegisterAndLoginRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_RegisterAndLoginRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_RegisterAndLoginRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) GetUsername() string {
|
|
|
if m != nil {
|
|
|
return m.Username
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) GetPassword() string {
|
|
|
if m != nil {
|
|
|
return m.Password
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) GetCaptcha() string {
|
|
|
if m != nil {
|
|
|
return m.Captcha
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) GetCaptchaId() string {
|
|
|
if m != nil {
|
|
|
return m.CaptchaId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) GetEmail() string {
|
|
|
if m != nil {
|
|
|
return m.Email
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) GetCode() string {
|
|
|
if m != nil {
|
|
|
return m.Code
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type SendEmailCodeRequest struct {
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
Captcha string `protobuf:"bytes,2,opt,name=captcha,proto3" json:"captcha,omitempty"`
|
|
|
CaptchaId string `protobuf:"bytes,3,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"`
|
|
|
Type EmailCodeType `protobuf:"varint,4,opt,name=type,proto3,enum=api.v1.EmailCodeType" json:"type,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) Reset() { *m = SendEmailCodeRequest{} }
|
|
|
func (m *SendEmailCodeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SendEmailCodeRequest) ProtoMessage() {}
|
|
|
func (*SendEmailCodeRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{2}
|
|
|
}
|
|
|
func (m *SendEmailCodeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *SendEmailCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_SendEmailCodeRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *SendEmailCodeRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SendEmailCodeRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *SendEmailCodeRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *SendEmailCodeRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SendEmailCodeRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SendEmailCodeRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *SendEmailCodeRequest) GetEmail() string {
|
|
|
if m != nil {
|
|
|
return m.Email
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) GetCaptcha() string {
|
|
|
if m != nil {
|
|
|
return m.Captcha
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) GetCaptchaId() string {
|
|
|
if m != nil {
|
|
|
return m.CaptchaId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) GetType() EmailCodeType {
|
|
|
if m != nil {
|
|
|
return m.Type
|
|
|
}
|
|
|
return EmailCodeType_EmailCodeTypeRegister
|
|
|
}
|
|
|
|
|
|
// 查询验证码请求
|
|
|
type GetUserCaptchaRequest struct {
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaRequest) Reset() { *m = GetUserCaptchaRequest{} }
|
|
|
func (m *GetUserCaptchaRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUserCaptchaRequest) ProtoMessage() {}
|
|
|
func (*GetUserCaptchaRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{3}
|
|
|
}
|
|
|
func (m *GetUserCaptchaRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *GetUserCaptchaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_GetUserCaptchaRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *GetUserCaptchaRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUserCaptchaRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *GetUserCaptchaRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *GetUserCaptchaRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUserCaptchaRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUserCaptchaRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUserCaptchaRequest) GetType() string {
|
|
|
if m != nil {
|
|
|
return m.Type
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
// 用户登录响应
|
|
|
type LoginReply struct {
|
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *LoginReply) Reset() { *m = LoginReply{} }
|
|
|
func (m *LoginReply) String() string { return proto.CompactTextString(m) }
|
|
|
func (*LoginReply) ProtoMessage() {}
|
|
|
func (*LoginReply) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{4}
|
|
|
}
|
|
|
func (m *LoginReply) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *LoginReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_LoginReply.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *LoginReply) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_LoginReply.Merge(m, src)
|
|
|
}
|
|
|
func (m *LoginReply) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *LoginReply) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_LoginReply.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_LoginReply proto.InternalMessageInfo
|
|
|
|
|
|
func (m *LoginReply) GetToken() string {
|
|
|
if m != nil {
|
|
|
return m.Token
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *LoginReply) GetUser() *User {
|
|
|
if m != nil {
|
|
|
return m.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 删除用户
|
|
|
type DeleteUserRequest struct {
|
|
|
Id []int64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *DeleteUserRequest) Reset() { *m = DeleteUserRequest{} }
|
|
|
func (m *DeleteUserRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*DeleteUserRequest) ProtoMessage() {}
|
|
|
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{5}
|
|
|
}
|
|
|
func (m *DeleteUserRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *DeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_DeleteUserRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *DeleteUserRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_DeleteUserRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *DeleteUserRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *DeleteUserRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_DeleteUserRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_DeleteUserRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *DeleteUserRequest) GetId() []int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 获取用户信息
|
|
|
type GetUserRequest struct {
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUserRequest) Reset() { *m = GetUserRequest{} }
|
|
|
func (m *GetUserRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUserRequest) ProtoMessage() {}
|
|
|
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{6}
|
|
|
}
|
|
|
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_GetUserRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *GetUserRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUserRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *GetUserRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *GetUserRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUserRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUserRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUserRequest) GetId() int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// 找回密码
|
|
|
type FindPasswordRequest struct {
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty" validate:"min=6"`
|
|
|
Captcha string `protobuf:"bytes,4,opt,name=captcha,proto3" json:"captcha,omitempty"`
|
|
|
CaptchaId string `protobuf:"bytes,5,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) Reset() { *m = FindPasswordRequest{} }
|
|
|
func (m *FindPasswordRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*FindPasswordRequest) ProtoMessage() {}
|
|
|
func (*FindPasswordRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{7}
|
|
|
}
|
|
|
func (m *FindPasswordRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *FindPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_FindPasswordRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *FindPasswordRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_FindPasswordRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *FindPasswordRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *FindPasswordRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_FindPasswordRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_FindPasswordRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *FindPasswordRequest) GetEmail() string {
|
|
|
if m != nil {
|
|
|
return m.Email
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) GetToken() string {
|
|
|
if m != nil {
|
|
|
return m.Token
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) GetPassword() string {
|
|
|
if m != nil {
|
|
|
return m.Password
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) GetCaptcha() string {
|
|
|
if m != nil {
|
|
|
return m.Captcha
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) GetCaptchaId() string {
|
|
|
if m != nil {
|
|
|
return m.CaptchaId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
// 用户列表请求
|
|
|
type ListUserRequest struct {
|
|
|
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
Wd string `protobuf:"bytes,3,opt,name=wd,proto3" json:"wd,omitempty"`
|
|
|
Sort string `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"`
|
|
|
Id []int64 `protobuf:"varint,5,rep,packed,name=id,proto3" json:"id,omitempty"`
|
|
|
GroupId []int64 `protobuf:"varint,6,rep,packed,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
|
Status []int32 `protobuf:"varint,7,rep,packed,name=status,proto3" json:"status,omitempty"`
|
|
|
Limit int64 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
Field []string `protobuf:"bytes,9,rep,name=field,proto3" json:"field,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) Reset() { *m = ListUserRequest{} }
|
|
|
func (m *ListUserRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ListUserRequest) ProtoMessage() {}
|
|
|
func (*ListUserRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{8}
|
|
|
}
|
|
|
func (m *ListUserRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *ListUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_ListUserRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *ListUserRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_ListUserRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *ListUserRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *ListUserRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_ListUserRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_ListUserRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *ListUserRequest) GetPage() int64 {
|
|
|
if m != nil {
|
|
|
return m.Page
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetSize_() int64 {
|
|
|
if m != nil {
|
|
|
return m.Size_
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetWd() string {
|
|
|
if m != nil {
|
|
|
return m.Wd
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetSort() string {
|
|
|
if m != nil {
|
|
|
return m.Sort
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetId() []int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetGroupId() []int64 {
|
|
|
if m != nil {
|
|
|
return m.GroupId
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetStatus() []int32 {
|
|
|
if m != nil {
|
|
|
return m.Status
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetLimit() int64 {
|
|
|
if m != nil {
|
|
|
return m.Limit
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) GetField() []string {
|
|
|
if m != nil {
|
|
|
return m.Field
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 用户列表响应
|
|
|
type ListUserReply struct {
|
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
User []*User `protobuf:"bytes,2,rep,name=user,proto3" json:"user,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *ListUserReply) Reset() { *m = ListUserReply{} }
|
|
|
func (m *ListUserReply) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ListUserReply) ProtoMessage() {}
|
|
|
func (*ListUserReply) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{9}
|
|
|
}
|
|
|
func (m *ListUserReply) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *ListUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_ListUserReply.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *ListUserReply) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_ListUserReply.Merge(m, src)
|
|
|
}
|
|
|
func (m *ListUserReply) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *ListUserReply) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_ListUserReply.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_ListUserReply proto.InternalMessageInfo
|
|
|
|
|
|
func (m *ListUserReply) GetTotal() int64 {
|
|
|
if m != nil {
|
|
|
return m.Total
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserReply) GetUser() []*User {
|
|
|
if m != nil {
|
|
|
return m.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 验证码响应
|
|
|
type GetUserCaptchaReply struct {
|
|
|
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
Captcha string `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
|
|
|
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) Reset() { *m = GetUserCaptchaReply{} }
|
|
|
func (m *GetUserCaptchaReply) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUserCaptchaReply) ProtoMessage() {}
|
|
|
func (*GetUserCaptchaReply) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{10}
|
|
|
}
|
|
|
func (m *GetUserCaptchaReply) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *GetUserCaptchaReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_GetUserCaptchaReply.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *GetUserCaptchaReply) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUserCaptchaReply.Merge(m, src)
|
|
|
}
|
|
|
func (m *GetUserCaptchaReply) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *GetUserCaptchaReply) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUserCaptchaReply.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUserCaptchaReply proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUserCaptchaReply) GetEnable() bool {
|
|
|
if m != nil {
|
|
|
return m.Enable
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) GetId() string {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) GetCaptcha() string {
|
|
|
if m != nil {
|
|
|
return m.Captcha
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) GetType() string {
|
|
|
if m != nil {
|
|
|
return m.Type
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
// 修改用户密码
|
|
|
type UpdateUserPasswordRequest struct {
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
|
|
|
NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty" validate:"min=6"`
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) Reset() { *m = UpdateUserPasswordRequest{} }
|
|
|
func (m *UpdateUserPasswordRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*UpdateUserPasswordRequest) ProtoMessage() {}
|
|
|
func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{11}
|
|
|
}
|
|
|
func (m *UpdateUserPasswordRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *UpdateUserPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_UpdateUserPasswordRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *UpdateUserPasswordRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_UpdateUserPasswordRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *UpdateUserPasswordRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *UpdateUserPasswordRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_UpdateUserPasswordRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_UpdateUserPasswordRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) GetId() int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) GetOldPassword() string {
|
|
|
if m != nil {
|
|
|
return m.OldPassword
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) GetNewPassword() string {
|
|
|
if m != nil {
|
|
|
return m.NewPassword
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
// 用户权限信息查询
|
|
|
type GetUserPermissionsReply struct {
|
|
|
Permission []*Permission `protobuf:"bytes,1,rep,name=permission,proto3" json:"permission,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUserPermissionsReply) Reset() { *m = GetUserPermissionsReply{} }
|
|
|
func (m *GetUserPermissionsReply) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUserPermissionsReply) ProtoMessage() {}
|
|
|
func (*GetUserPermissionsReply) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{12}
|
|
|
}
|
|
|
func (m *GetUserPermissionsReply) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *GetUserPermissionsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_GetUserPermissionsReply.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *GetUserPermissionsReply) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUserPermissionsReply.Merge(m, src)
|
|
|
}
|
|
|
func (m *GetUserPermissionsReply) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *GetUserPermissionsReply) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUserPermissionsReply.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUserPermissionsReply proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUserPermissionsReply) GetPermission() []*Permission {
|
|
|
if m != nil {
|
|
|
return m.Permission
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 管理后台设置用户信息
|
|
|
type SetUserRequest struct {
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty" validate:"min=3,max=32"`
|
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty" validate:"min=6"`
|
|
|
GroupId []int64 `protobuf:"varint,4,rep,packed,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
|
Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) Reset() { *m = SetUserRequest{} }
|
|
|
func (m *SetUserRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetUserRequest) ProtoMessage() {}
|
|
|
func (*SetUserRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{13}
|
|
|
}
|
|
|
func (m *SetUserRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *SetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_SetUserRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *SetUserRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetUserRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *SetUserRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *SetUserRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetUserRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetUserRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *SetUserRequest) GetId() int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) GetUsername() string {
|
|
|
if m != nil {
|
|
|
return m.Username
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) GetPassword() string {
|
|
|
if m != nil {
|
|
|
return m.Password
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) GetGroupId() []int64 {
|
|
|
if m != nil {
|
|
|
return m.GroupId
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) GetEmail() string {
|
|
|
if m != nil {
|
|
|
return m.Email
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
// 用户动态
|
|
|
type Dynamic struct {
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
|
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
Username string `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
CreatedAt *time.Time `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"`
|
|
|
UpdatedAt *time.Time `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) Reset() { *m = Dynamic{} }
|
|
|
func (m *Dynamic) String() string { return proto.CompactTextString(m) }
|
|
|
func (*Dynamic) ProtoMessage() {}
|
|
|
func (*Dynamic) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{14}
|
|
|
}
|
|
|
func (m *Dynamic) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *Dynamic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_Dynamic.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *Dynamic) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_Dynamic.Merge(m, src)
|
|
|
}
|
|
|
func (m *Dynamic) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *Dynamic) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_Dynamic.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_Dynamic proto.InternalMessageInfo
|
|
|
|
|
|
func (m *Dynamic) GetId() int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) GetUserId() int64 {
|
|
|
if m != nil {
|
|
|
return m.UserId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) GetContent() string {
|
|
|
if m != nil {
|
|
|
return m.Content
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) GetType() int32 {
|
|
|
if m != nil {
|
|
|
return m.Type
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) GetUsername() string {
|
|
|
if m != nil {
|
|
|
return m.Username
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) GetCreatedAt() *time.Time {
|
|
|
if m != nil {
|
|
|
return m.CreatedAt
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) GetUpdatedAt() *time.Time {
|
|
|
if m != nil {
|
|
|
return m.UpdatedAt
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 用户动态列表请求
|
|
|
type ListUserDynamicRequest struct {
|
|
|
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicRequest) Reset() { *m = ListUserDynamicRequest{} }
|
|
|
func (m *ListUserDynamicRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ListUserDynamicRequest) ProtoMessage() {}
|
|
|
func (*ListUserDynamicRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{15}
|
|
|
}
|
|
|
func (m *ListUserDynamicRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *ListUserDynamicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_ListUserDynamicRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *ListUserDynamicRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_ListUserDynamicRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *ListUserDynamicRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *ListUserDynamicRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_ListUserDynamicRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_ListUserDynamicRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *ListUserDynamicRequest) GetPage() int64 {
|
|
|
if m != nil {
|
|
|
return m.Page
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicRequest) GetSize_() int64 {
|
|
|
if m != nil {
|
|
|
return m.Size_
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// 用户动态列表响应
|
|
|
type ListUserDynamicReply struct {
|
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
Dynamic []*Dynamic `protobuf:"bytes,2,rep,name=dynamic,proto3" json:"dynamic,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicReply) Reset() { *m = ListUserDynamicReply{} }
|
|
|
func (m *ListUserDynamicReply) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ListUserDynamicReply) ProtoMessage() {}
|
|
|
func (*ListUserDynamicReply) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{16}
|
|
|
}
|
|
|
func (m *ListUserDynamicReply) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *ListUserDynamicReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_ListUserDynamicReply.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *ListUserDynamicReply) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_ListUserDynamicReply.Merge(m, src)
|
|
|
}
|
|
|
func (m *ListUserDynamicReply) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *ListUserDynamicReply) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_ListUserDynamicReply.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_ListUserDynamicReply proto.InternalMessageInfo
|
|
|
|
|
|
func (m *ListUserDynamicReply) GetTotal() int64 {
|
|
|
if m != nil {
|
|
|
return m.Total
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicReply) GetDynamic() []*Dynamic {
|
|
|
if m != nil {
|
|
|
return m.Dynamic
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// 用户签到
|
|
|
type Sign struct {
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
|
SignAt int32 `protobuf:"varint,3,opt,name=sign_at,json=signAt,proto3" json:"sign_at,omitempty"`
|
|
|
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
|
|
|
CreatedAt *time.Time `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"`
|
|
|
Award int32 `protobuf:"varint,6,opt,name=award,proto3" json:"award,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *Sign) Reset() { *m = Sign{} }
|
|
|
func (m *Sign) String() string { return proto.CompactTextString(m) }
|
|
|
func (*Sign) ProtoMessage() {}
|
|
|
func (*Sign) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{17}
|
|
|
}
|
|
|
func (m *Sign) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *Sign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_Sign.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *Sign) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_Sign.Merge(m, src)
|
|
|
}
|
|
|
func (m *Sign) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *Sign) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_Sign.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_Sign proto.InternalMessageInfo
|
|
|
|
|
|
func (m *Sign) GetId() int64 {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *Sign) GetUserId() int64 {
|
|
|
if m != nil {
|
|
|
return m.UserId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *Sign) GetSignAt() int32 {
|
|
|
if m != nil {
|
|
|
return m.SignAt
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *Sign) GetIp() string {
|
|
|
if m != nil {
|
|
|
return m.Ip
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *Sign) GetCreatedAt() *time.Time {
|
|
|
if m != nil {
|
|
|
return m.CreatedAt
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *Sign) GetAward() int32 {
|
|
|
if m != nil {
|
|
|
return m.Award
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
type ListUserDownloadRequest struct {
|
|
|
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadRequest) Reset() { *m = ListUserDownloadRequest{} }
|
|
|
func (m *ListUserDownloadRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ListUserDownloadRequest) ProtoMessage() {}
|
|
|
func (*ListUserDownloadRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{18}
|
|
|
}
|
|
|
func (m *ListUserDownloadRequest) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *ListUserDownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_ListUserDownloadRequest.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *ListUserDownloadRequest) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_ListUserDownloadRequest.Merge(m, src)
|
|
|
}
|
|
|
func (m *ListUserDownloadRequest) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *ListUserDownloadRequest) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_ListUserDownloadRequest.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_ListUserDownloadRequest proto.InternalMessageInfo
|
|
|
|
|
|
func (m *ListUserDownloadRequest) GetPage() int64 {
|
|
|
if m != nil {
|
|
|
return m.Page
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadRequest) GetSize_() int64 {
|
|
|
if m != nil {
|
|
|
return m.Size_
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
type ListUserDownloadReply struct {
|
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
Download []*Download `protobuf:"bytes,2,rep,name=download,proto3" json:"download,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadReply) Reset() { *m = ListUserDownloadReply{} }
|
|
|
func (m *ListUserDownloadReply) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ListUserDownloadReply) ProtoMessage() {}
|
|
|
func (*ListUserDownloadReply) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_b74e2e33d57193df, []int{19}
|
|
|
}
|
|
|
func (m *ListUserDownloadReply) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
}
|
|
|
func (m *ListUserDownloadReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
if deterministic {
|
|
|
return xxx_messageInfo_ListUserDownloadReply.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
func (m *ListUserDownloadReply) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_ListUserDownloadReply.Merge(m, src)
|
|
|
}
|
|
|
func (m *ListUserDownloadReply) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
}
|
|
|
func (m *ListUserDownloadReply) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_ListUserDownloadReply.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_ListUserDownloadReply proto.InternalMessageInfo
|
|
|
|
|
|
func (m *ListUserDownloadReply) GetTotal() int64 {
|
|
|
if m != nil {
|
|
|
return m.Total
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadReply) GetDownload() []*Download {
|
|
|
if m != nil {
|
|
|
return m.Download
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
|
proto.RegisterEnum("api.v1.EmailCodeType", EmailCodeType_name, EmailCodeType_value)
|
|
|
proto.RegisterType((*User)(nil), "api.v1.User")
|
|
|
proto.RegisterType((*RegisterAndLoginRequest)(nil), "api.v1.RegisterAndLoginRequest")
|
|
|
proto.RegisterType((*SendEmailCodeRequest)(nil), "api.v1.SendEmailCodeRequest")
|
|
|
proto.RegisterType((*GetUserCaptchaRequest)(nil), "api.v1.GetUserCaptchaRequest")
|
|
|
proto.RegisterType((*LoginReply)(nil), "api.v1.LoginReply")
|
|
|
proto.RegisterType((*DeleteUserRequest)(nil), "api.v1.DeleteUserRequest")
|
|
|
proto.RegisterType((*GetUserRequest)(nil), "api.v1.GetUserRequest")
|
|
|
proto.RegisterType((*FindPasswordRequest)(nil), "api.v1.FindPasswordRequest")
|
|
|
proto.RegisterType((*ListUserRequest)(nil), "api.v1.ListUserRequest")
|
|
|
proto.RegisterType((*ListUserReply)(nil), "api.v1.ListUserReply")
|
|
|
proto.RegisterType((*GetUserCaptchaReply)(nil), "api.v1.GetUserCaptchaReply")
|
|
|
proto.RegisterType((*UpdateUserPasswordRequest)(nil), "api.v1.UpdateUserPasswordRequest")
|
|
|
proto.RegisterType((*GetUserPermissionsReply)(nil), "api.v1.GetUserPermissionsReply")
|
|
|
proto.RegisterType((*SetUserRequest)(nil), "api.v1.SetUserRequest")
|
|
|
proto.RegisterType((*Dynamic)(nil), "api.v1.Dynamic")
|
|
|
proto.RegisterType((*ListUserDynamicRequest)(nil), "api.v1.ListUserDynamicRequest")
|
|
|
proto.RegisterType((*ListUserDynamicReply)(nil), "api.v1.ListUserDynamicReply")
|
|
|
proto.RegisterType((*Sign)(nil), "api.v1.Sign")
|
|
|
proto.RegisterType((*ListUserDownloadRequest)(nil), "api.v1.ListUserDownloadRequest")
|
|
|
proto.RegisterType((*ListUserDownloadReply)(nil), "api.v1.ListUserDownloadReply")
|
|
|
}
|
|
|
|
|
|
func init() { proto.RegisterFile("api/v1/user.proto", fileDescriptor_b74e2e33d57193df) }
|
|
|
|
|
|
var fileDescriptor_b74e2e33d57193df = []byte{
|
|
|
// 1790 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xcd, 0x6e, 0x1b, 0xc9,
|
|
|
0x11, 0xf6, 0x88, 0xff, 0x45, 0x49, 0x96, 0x5a, 0xfc, 0x13, 0x25, 0x8b, 0xd4, 0x2c, 0x92, 0x68,
|
|
|
0x1d, 0x43, 0x8c, 0x65, 0x24, 0x0b, 0xec, 0x62, 0x11, 0x48, 0xb2, 0x77, 0xa1, 0xc0, 0x41, 0x9c,
|
|
|
0x91, 0x85, 0x00, 0xbb, 0x07, 0x61, 0xcc, 0x6e, 0x31, 0x9d, 0x1d, 0x4e, 0x8f, 0x67, 0x9a, 0xe2,
|
|
|
0x2a, 0xc7, 0x5c, 0x72, 0x35, 0x90, 0xd7, 0x08, 0x90, 0x73, 0x80, 0x3c, 0x40, 0x0e, 0x39, 0x2c,
|
|
|
0x90, 0x4b, 0x4e, 0x9b, 0xc0, 0x0e, 0x90, 0x53, 0x2e, 0x7e, 0x80, 0x20, 0xe8, 0xbf, 0x21, 0x7b,
|
|
|
0xe8, 0xf1, 0x4a, 0xf6, 0x8d, 0x55, 0x5d, 0xfd, 0x55, 0x75, 0xd5, 0xd7, 0xd5, 0x35, 0x84, 0x75,
|
|
|
0x3f, 0xa2, 0x83, 0xcb, 0xfb, 0x83, 0x49, 0x42, 0xe2, 0xfd, 0x28, 0x66, 0x9c, 0xa1, 0xb2, 0x1f,
|
|
|
0xd1, 0xfd, 0xcb, 0xfb, 0xdd, 0xde, 0x88, 0xb1, 0x51, 0x40, 0x06, 0x52, 0xfb, 0x6c, 0x72, 0x31,
|
|
|
0xe0, 0x74, 0x4c, 0x12, 0xee, 0x8f, 0x23, 0x65, 0xd8, 0x6d, 0x8c, 0xd8, 0x88, 0xc9, 0x9f, 0x03,
|
|
|
0xf1, 0x4b, 0x6b, 0xb7, 0xf5, 0x36, 0x01, 0xec, 0x87, 0x21, 0xe3, 0x3e, 0xa7, 0x2c, 0x4c, 0xf4,
|
|
|
0xea, 0x56, 0x16, 0x94, 0x8c, 0x23, 0x7e, 0xa5, 0x17, 0xdb, 0x3a, 0x98, 0x88, 0xc4, 0x63, 0x9a,
|
|
|
0x24, 0x94, 0x85, 0x7a, 0xa1, 0xa9, 0x17, 0x30, 0x9b, 0x86, 0x01, 0xf3, 0xb1, 0x52, 0xbb, 0xff,
|
|
|
0x2d, 0x41, 0xf1, 0x2c, 0x21, 0x31, 0xfa, 0x04, 0xaa, 0x01, 0x1b, 0xd1, 0xf0, 0xdc, 0xe7, 0x9d,
|
|
|
0x8d, 0xbe, 0xb3, 0x57, 0x3f, 0xe8, 0xee, 0x2b, 0x47, 0xfb, 0xc6, 0xd1, 0xfe, 0x53, 0x13, 0xfd,
|
|
|
0x51, 0xf1, 0xc5, 0x3f, 0x7b, 0x8e, 0x57, 0x91, 0x3b, 0x0e, 0x39, 0xfa, 0x29, 0xc0, 0x30, 0x26,
|
|
|
0x3e, 0x27, 0x58, 0x6c, 0x6f, 0x5c, 0x73, 0x7b, 0x4d, 0xef, 0x51, 0x00, 0x93, 0x08, 0x1b, 0x80,
|
|
|
0xe6, 0x75, 0x01, 0xf4, 0x9e, 0x43, 0x8e, 0x56, 0x61, 0x89, 0xe2, 0x8e, 0xd3, 0x77, 0xf6, 0x0a,
|
|
|
0xde, 0x12, 0xc5, 0xa8, 0x0b, 0x55, 0x51, 0x8f, 0xd0, 0x1f, 0x93, 0xce, 0x52, 0xdf, 0xd9, 0xab,
|
|
|
0x79, 0xa9, 0x8c, 0x5a, 0x50, 0x1e, 0xb3, 0x67, 0x34, 0x20, 0x9d, 0x82, 0x5c, 0xd1, 0x12, 0x6a,
|
|
|
0x40, 0x89, 0x8c, 0x7d, 0x1a, 0x74, 0x8a, 0x52, 0xad, 0x04, 0xd4, 0x81, 0x8a, 0x8f, 0x71, 0x4c,
|
|
|
0x92, 0xa4, 0x53, 0x92, 0x7a, 0x23, 0xa2, 0x6d, 0xa8, 0x25, 0x74, 0x14, 0xfa, 0x7c, 0x12, 0x93,
|
|
|
0x4e, 0x59, 0xae, 0xcd, 0x14, 0xc8, 0x85, 0x95, 0xc0, 0x4f, 0xf8, 0xb9, 0xca, 0x2a, 0x8d, 0x3a,
|
|
|
0x15, 0x69, 0x51, 0x17, 0xca, 0xc7, 0x42, 0x77, 0x12, 0xa1, 0x1e, 0xd4, 0x63, 0x32, 0xa2, 0x09,
|
|
|
0x27, 0xb1, 0xb0, 0xa8, 0x4a, 0x0b, 0x30, 0xaa, 0x93, 0x08, 0x6d, 0x41, 0x0d, 0xb3, 0xe1, 0xf9,
|
|
|
0x90, 0x4d, 0x42, 0xde, 0xa9, 0xf5, 0x9d, 0xbd, 0x92, 0x57, 0xc5, 0x6c, 0x78, 0x2c, 0x64, 0xb4,
|
|
|
0x0b, 0xcb, 0x17, 0x2c, 0x08, 0xd8, 0x54, 0xaf, 0x83, 0x5c, 0xaf, 0x2b, 0x9d, 0x32, 0xb9, 0x03,
|
|
|
0x70, 0xe1, 0x87, 0x89, 0x36, 0xa8, 0x4b, 0x83, 0x9a, 0xd0, 0xa8, 0xe5, 0xef, 0xc1, 0xea, 0x85,
|
|
|
0x7f, 0xc9, 0x62, 0xca, 0x89, 0x36, 0x59, 0x96, 0x26, 0x2b, 0x46, 0xab, 0xcc, 0x3e, 0x80, 0x95,
|
|
|
0x21, 0x1b, 0x8f, 0x49, 0xc8, 0xb5, 0xd5, 0x8a, 0xb4, 0x5a, 0xd6, 0x4a, 0x65, 0xd4, 0x82, 0x72,
|
|
|
0xc2, 0x7d, 0x3e, 0x49, 0x3a, 0xab, 0x72, 0x55, 0x4b, 0x42, 0xef, 0x5f, 0xfa, 0xdc, 0x8f, 0x3b,
|
|
|
0xb7, 0x55, 0xb6, 0x95, 0x24, 0x2a, 0x44, 0x31, 0x09, 0x39, 0xe5, 0x57, 0x9d, 0x35, 0x55, 0x21,
|
|
|
0x23, 0x8b, 0xb5, 0x98, 0xf8, 0x81, 0xac, 0xde, 0xba, 0x5a, 0x33, 0x32, 0xda, 0x84, 0xea, 0x28,
|
|
|
0x66, 0x93, 0xe8, 0x9c, 0xe2, 0x0e, 0xea, 0x17, 0xf6, 0x0a, 0x5e, 0x45, 0xca, 0x27, 0x58, 0x24,
|
|
|
0x64, 0x18, 0x13, 0x4c, 0x4d, 0x98, 0x2d, 0x95, 0x10, 0xa5, 0x93, 0x51, 0xba, 0xff, 0x71, 0xa0,
|
|
|
0xed, 0xe9, 0xfc, 0x1e, 0x86, 0x58, 0x16, 0xc2, 0x23, 0xcf, 0x27, 0x24, 0xe1, 0xe8, 0xa3, 0x39,
|
|
|
0xce, 0x08, 0x26, 0xd5, 0x8e, 0xb6, 0x5e, 0x7f, 0xdb, 0x6b, 0x5f, 0xfa, 0x01, 0x15, 0x34, 0xfb,
|
|
|
0xd8, 0x1d, 0xd3, 0xf0, 0xd3, 0x07, 0xf7, 0xc6, 0xfe, 0xd7, 0x9f, 0x3e, 0x38, 0x70, 0xe7, 0x08,
|
|
|
0xf5, 0x23, 0xa8, 0x46, 0x7e, 0x92, 0x4c, 0x59, 0x8c, 0x15, 0xd9, 0x8e, 0x1a, 0xaf, 0xbf, 0xed,
|
|
|
0xad, 0xd9, 0x1b, 0x7f, 0xe2, 0x7a, 0xa9, 0x95, 0x20, 0xd5, 0xd0, 0x8f, 0xf8, 0xf0, 0xd7, 0xbe,
|
|
|
0xe6, 0xa0, 0x11, 0x45, 0xc5, 0xf4, 0x4f, 0x71, 0x40, 0xc5, 0xc4, 0x9a, 0xd6, 0x9c, 0xe0, 0x19,
|
|
|
0x47, 0x4b, 0xf3, 0x1c, 0x45, 0x50, 0x1c, 0x32, 0x6c, 0x48, 0x28, 0x7f, 0xbb, 0x2f, 0x1c, 0x68,
|
|
|
0x9c, 0x92, 0x10, 0x3f, 0x12, 0x16, 0xc7, 0x0c, 0x13, 0x73, 0xcc, 0x14, 0xc2, 0xc9, 0xd0, 0xdc,
|
|
|
0x44, 0xb4, 0xf4, 0xb6, 0x88, 0x0a, 0xd9, 0x88, 0x3e, 0x84, 0x22, 0xbf, 0x8a, 0x88, 0x0c, 0x75,
|
|
|
0xf5, 0xa0, 0xb9, 0xaf, 0x5a, 0xdf, 0x7e, 0xea, 0xf6, 0xe9, 0x55, 0x44, 0x3c, 0x69, 0xe2, 0xfe,
|
|
|
0x10, 0x9a, 0x9f, 0x13, 0x2e, 0xda, 0xcd, 0xb1, 0xda, 0x6e, 0x42, 0x42, 0x1a, 0x43, 0x45, 0xa4,
|
|
|
0x8c, 0x1f, 0x02, 0xe8, 0xea, 0x44, 0xc1, 0x95, 0x08, 0x9a, 0xb3, 0xaf, 0x48, 0x68, 0x82, 0x96,
|
|
|
0x02, 0xea, 0x43, 0x51, 0x14, 0x41, 0x46, 0x5c, 0x3f, 0x58, 0x36, 0xbe, 0x85, 0x07, 0x4f, 0xae,
|
|
|
0xb8, 0x1f, 0xc0, 0xfa, 0x43, 0x12, 0x10, 0x4e, 0xa4, 0x4e, 0xbb, 0x33, 0xcd, 0xa2, 0xa0, 0x9a,
|
|
|
0x85, 0xdb, 0x87, 0x55, 0x1d, 0x57, 0xd6, 0x42, 0xb7, 0x13, 0xf7, 0x8f, 0x0e, 0x6c, 0x7c, 0x46,
|
|
|
0x43, 0xfc, 0x44, 0x17, 0xf0, 0xed, 0xb9, 0x4c, 0x83, 0x5d, 0x9a, 0x0f, 0x76, 0x9e, 0x25, 0x85,
|
|
|
0x9b, 0xb2, 0xa4, 0xf8, 0xb6, 0x9a, 0x94, 0x32, 0x35, 0x71, 0xff, 0xe6, 0xc0, 0xed, 0xc7, 0x34,
|
|
|
0xb1, 0x8e, 0x84, 0xa0, 0x18, 0xf9, 0x23, 0xa2, 0x0f, 0x25, 0x7f, 0x0b, 0x5d, 0x42, 0x7f, 0xab,
|
|
|
0x3a, 0x64, 0xc1, 0x93, 0xbf, 0xc5, 0xd1, 0xa7, 0xa6, 0xcc, 0x4b, 0x53, 0x2c, 0x6d, 0x58, 0xcc,
|
|
|
0x75, 0x04, 0xf2, 0xb7, 0x4e, 0x4f, 0xc9, 0x24, 0xd0, 0xba, 0x93, 0x65, 0xfb, 0x4e, 0xce, 0xda,
|
|
|
0x42, 0xa5, 0x5f, 0x98, 0x6b, 0x0b, 0x0d, 0x28, 0x05, 0x74, 0x4c, 0xb9, 0x6c, 0x7a, 0x05, 0x4f,
|
|
|
0x09, 0x42, 0x7b, 0x41, 0x49, 0x80, 0x3b, 0xb5, 0x7e, 0x41, 0x64, 0x4e, 0x0a, 0xee, 0xe7, 0xb0,
|
|
|
0x32, 0x3b, 0x4d, 0xca, 0x06, 0xee, 0x07, 0xfa, 0x30, 0x4a, 0x98, 0x63, 0x43, 0x21, 0x87, 0x0d,
|
|
|
0x5f, 0xc1, 0x46, 0x96, 0x80, 0x02, 0xae, 0x05, 0x65, 0x12, 0xfa, 0xcf, 0x02, 0x95, 0x9c, 0xaa,
|
|
|
0xa7, 0x25, 0x7d, 0x4c, 0x55, 0x44, 0x71, 0xcc, 0xfc, 0x5b, 0x8b, 0xe6, 0x2e, 0x81, 0x21, 0xf0,
|
|
|
0xef, 0x1d, 0xd8, 0x3c, 0x93, 0x0f, 0x94, 0x70, 0x98, 0x65, 0x4e, 0xf6, 0xc1, 0xda, 0x85, 0x65,
|
|
|
0x16, 0xe0, 0x73, 0xbb, 0x8f, 0x78, 0x75, 0x16, 0xa4, 0x9c, 0x43, 0x1f, 0xc1, 0x72, 0x48, 0xa6,
|
|
|
0xe7, 0xd7, 0x22, 0x51, 0x3d, 0x24, 0x53, 0xb3, 0xd1, 0xfd, 0x39, 0xb4, 0xf5, 0xb1, 0x9f, 0xa4,
|
|
|
0x63, 0x41, 0xa2, 0x8e, 0x7e, 0x00, 0x30, 0x1b, 0x15, 0xe4, 0x95, 0xa8, 0x1f, 0x20, 0x93, 0xb9,
|
|
|
0x99, 0xb5, 0x37, 0x67, 0xe5, 0xfe, 0xc5, 0x81, 0xd5, 0xd3, 0xb7, 0xde, 0x17, 0xab, 0x95, 0x2e,
|
|
|
0xbd, 0x6b, 0x2b, 0xbd, 0xde, 0x25, 0x99, 0xe7, 0x5e, 0xd1, 0xe6, 0xde, 0x1b, 0x9b, 0xa5, 0xfb,
|
|
|
0x3f, 0x07, 0x2a, 0x0f, 0xaf, 0x42, 0x7f, 0x4c, 0x87, 0x0b, 0x71, 0xb7, 0xa1, 0x22, 0x42, 0x39,
|
|
|
0xd7, 0x65, 0x2f, 0x78, 0x65, 0x21, 0x9e, 0xa8, 0xd2, 0xb3, 0x90, 0x93, 0x90, 0xa7, 0xa5, 0x57,
|
|
|
0xa2, 0x55, 0xfa, 0x92, 0x2a, 0xbd, 0x35, 0x7d, 0x54, 0x32, 0xd3, 0x87, 0x3d, 0x2b, 0x95, 0xde,
|
|
|
0x77, 0x56, 0x2a, 0xdf, 0x78, 0x56, 0x72, 0x3f, 0x83, 0x96, 0xb9, 0x4e, 0x3a, 0x0f, 0x37, 0xec,
|
|
|
0x11, 0x3f, 0x2b, 0x56, 0x0b, 0x6b, 0x45, 0xf7, 0x57, 0xd0, 0x58, 0xc0, 0xc9, 0xbf, 0x9d, 0x1f,
|
|
|
0x42, 0x05, 0x2b, 0x2b, 0x7d, 0x41, 0x6f, 0x1b, 0x9a, 0x99, 0xcd, 0x66, 0xdd, 0xfd, 0x93, 0x03,
|
|
|
0xc5, 0x53, 0x3a, 0x0a, 0xaf, 0x5f, 0x9e, 0x36, 0x54, 0xc4, 0xe4, 0x25, 0x12, 0x52, 0xd0, 0xd3,
|
|
|
0x07, 0x1d, 0x85, 0x7a, 0x2e, 0x8c, 0xf4, 0xb5, 0x5c, 0xa2, 0xd1, 0xfb, 0x67, 0xbf, 0x01, 0x25,
|
|
|
0x7f, 0xea, 0xc7, 0x58, 0x26, 0xbe, 0xe4, 0x29, 0xc1, 0x3d, 0x84, 0x76, 0x9a, 0x0a, 0x3d, 0x60,
|
|
|
0xdf, 0x30, 0xa7, 0xee, 0x97, 0xd0, 0x5c, 0x84, 0xc8, 0x4f, 0xe7, 0x3d, 0xa8, 0x9a, 0x51, 0x5e,
|
|
|
0xe7, 0x73, 0x2d, 0xcd, 0xa7, 0xd9, 0x9e, 0x5a, 0xdc, 0x3d, 0x82, 0x15, 0xeb, 0x41, 0x46, 0x9b,
|
|
|
0xd0, 0xb4, 0x5f, 0x68, 0x3d, 0x13, 0xad, 0xdd, 0x42, 0x2d, 0x40, 0xd6, 0x92, 0x7c, 0x85, 0xd7,
|
|
|
0x9c, 0x83, 0x3f, 0xdf, 0x86, 0x8a, 0x88, 0xee, 0xf0, 0xc9, 0x09, 0xf2, 0xa1, 0x6a, 0x76, 0xa0,
|
|
|
0x9e, 0xf1, 0x9b, 0x33, 0x57, 0x75, 0xd3, 0x7e, 0x32, 0x7b, 0xcf, 0xdd, 0xfe, 0xef, 0xfe, 0xfe,
|
|
|
0xef, 0x3f, 0x2c, 0x75, 0xdd, 0xe6, 0x60, 0xee, 0xeb, 0x69, 0x60, 0x26, 0xdf, 0x8f, 0x9d, 0xbb,
|
|
|
0xe8, 0x4b, 0x28, 0x49, 0xfb, 0x77, 0xc3, 0xbf, 0x23, 0xf1, 0xdb, 0x2e, 0xb2, 0xf0, 0xe5, 0x2c,
|
|
|
0x2e, 0xc0, 0xcf, 0xa0, 0xfc, 0x98, 0x8d, 0xd8, 0x84, 0xa3, 0xd6, 0x42, 0xf1, 0x1f, 0x89, 0xcf,
|
|
|
0xa9, 0x6e, 0x8e, 0xde, 0xdd, 0x92, 0xc0, 0xcd, 0xbb, 0x1b, 0x59, 0x60, 0x01, 0xf6, 0x08, 0x2a,
|
|
|
0xba, 0xd1, 0xa2, 0x96, 0x09, 0xca, 0x9e, 0x2c, 0xba, 0xd6, 0xb3, 0xe4, 0x36, 0x24, 0xda, 0x2a,
|
|
|
0x5a, 0x9e, 0x47, 0x43, 0xcf, 0x01, 0x2d, 0x3e, 0x1c, 0x68, 0x37, 0xdd, 0x99, 0xf7, 0xa8, 0xe4,
|
|
|
0x06, 0xad, 0xb3, 0xdd, 0xb5, 0xb3, 0x6d, 0x5a, 0xa8, 0x48, 0xc8, 0x17, 0xb0, 0x3e, 0x07, 0x1b,
|
|
|
0xb3, 0x0b, 0xf1, 0x41, 0x64, 0xc5, 0x9a, 0x0b, 0xde, 0x93, 0xe0, 0x9b, 0xdd, 0x86, 0x0d, 0xae,
|
|
|
0x30, 0x54, 0xb2, 0x61, 0x36, 0x83, 0xa1, 0xcd, 0x94, 0xa6, 0xd9, 0xb9, 0x2c, 0xd7, 0x83, 0xce,
|
|
|
0xd2, 0x5d, 0x3b, 0x4b, 0x1e, 0x54, 0x0e, 0x31, 0xb6, 0x93, 0x6d, 0x3f, 0x4b, 0xb9, 0x80, 0x6d,
|
|
|
0x09, 0xb8, 0xee, 0x5a, 0x80, 0x22, 0x54, 0x0f, 0x2a, 0xa7, 0xd9, 0x02, 0xde, 0x0c, 0xb3, 0xbb,
|
|
|
0x80, 0x79, 0x06, 0x55, 0x73, 0xb1, 0x51, 0x3b, 0xa5, 0xaa, 0x3d, 0x9d, 0x75, 0x9b, 0x8b, 0x0b,
|
|
|
0x82, 0xc6, 0x9b, 0x12, 0x74, 0x03, 0xad, 0xdb, 0x6c, 0xa3, 0x09, 0x47, 0xbf, 0x49, 0x87, 0xd6,
|
|
|
0x63, 0x33, 0x14, 0x66, 0x28, 0x67, 0x0f, 0xd9, 0xdd, 0xad, 0xbc, 0x65, 0xe1, 0x68, 0x5b, 0x3a,
|
|
|
0x6a, 0x21, 0xbb, 0x88, 0x66, 0xbc, 0x09, 0x01, 0x2d, 0x0e, 0x10, 0xb9, 0x57, 0xa7, 0x97, 0x71,
|
|
|
0x94, 0x1d, 0x3a, 0x0c, 0x63, 0x50, 0xdb, 0x66, 0x4c, 0x6a, 0x86, 0xc6, 0x80, 0x8e, 0xfd, 0xf0,
|
|
|
0xe4, 0x2c, 0x12, 0xcd, 0xeb, 0x21, 0x1b, 0x4e, 0xc4, 0x67, 0xe6, 0x8d, 0xaf, 0xea, 0x0f, 0xa4,
|
|
|
0x9b, 0x5d, 0xd4, 0xcb, 0x9c, 0x29, 0xa4, 0x13, 0x09, 0x8c, 0x0d, 0xf0, 0x78, 0x36, 0x2d, 0x9b,
|
|
|
0xc1, 0x60, 0x27, 0x5b, 0x0f, 0xfb, 0xa5, 0xec, 0x6e, 0xe7, 0xae, 0xe7, 0x67, 0x53, 0x3f, 0x6f,
|
|
|
0xe8, 0x31, 0xd4, 0xc4, 0xeb, 0xf6, 0x94, 0x61, 0xff, 0x2a, 0xf7, 0x50, 0xe9, 0xdd, 0x13, 0xa6,
|
|
|
0x86, 0x07, 0x5d, 0x9b, 0x07, 0xe2, 0x8d, 0x43, 0xbf, 0x94, 0x3c, 0x10, 0x56, 0x04, 0xbf, 0x03,
|
|
|
0x24, 0x7a, 0x03, 0xe4, 0x73, 0x58, 0xcb, 0x3e, 0x45, 0xb3, 0x2e, 0x9c, 0xf3, 0xce, 0x75, 0xef,
|
|
|
0xe4, 0x1b, 0xcc, 0x35, 0x64, 0x64, 0xb7, 0x20, 0xf3, 0x40, 0xa1, 0xaf, 0xed, 0xef, 0xab, 0x53,
|
|
|
0x4e, 0xa2, 0x5f, 0x84, 0x04, 0xa5, 0x9c, 0x7d, 0xc3, 0xc7, 0x57, 0x6e, 0xdd, 0xef, 0x49, 0x57,
|
|
|
0xdf, 0x77, 0x77, 0x2d, 0x57, 0x17, 0x34, 0xc4, 0xa6, 0xe3, 0x0d, 0x12, 0x4e, 0x22, 0x16, 0xca,
|
|
|
0xee, 0xf4, 0x06, 0xcf, 0x4f, 0xa7, 0xec, 0xbd, 0x3c, 0x77, 0xbf, 0xc3, 0x33, 0x9f, 0x32, 0xe1,
|
|
|
0x99, 0xc2, 0x8a, 0xf5, 0x81, 0x8e, 0xb6, 0x67, 0x2d, 0x67, 0xf1, 0xbb, 0x3d, 0xd7, 0xa9, 0x2b,
|
|
|
0x9d, 0x6e, 0xbb, 0xf6, 0x6d, 0x92, 0xb3, 0xee, 0x60, 0xc8, 0xb0, 0x38, 0xe4, 0xd1, 0x8f, 0xff,
|
|
|
0xfa, 0x72, 0xc7, 0xf9, 0xe6, 0xe5, 0x8e, 0xf3, 0xaf, 0x97, 0x3b, 0xce, 0x8b, 0x57, 0x3b, 0xb7,
|
|
|
0xbe, 0x79, 0xb5, 0x73, 0xeb, 0x1f, 0xaf, 0x76, 0x6e, 0x81, 0xfe, 0xab, 0xf2, 0x89, 0xf3, 0xc5,
|
|
|
0xfa, 0x98, 0xc5, 0x04, 0xb3, 0xa1, 0x86, 0xf9, 0xe4, 0xf2, 0xfe, 0xb3, 0xb2, 0x74, 0xf5, 0xe0,
|
|
|
0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0xf6, 0xe0, 0xad, 0xe3, 0x14, 0x00, 0x00,
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ context.Context
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
// UserAPIClient is the client API for UserAPI service.
|
|
|
//
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
type UserAPIClient interface {
|
|
|
// 用户注册
|
|
|
Register(ctx context.Context, in *RegisterAndLoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
|
|
|
// 用户登录
|
|
|
Login(ctx context.Context, in *RegisterAndLoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
|
|
|
// 退出登录
|
|
|
Logout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 查询用户信息。如果传递了Id参数,则表示查询用户的公开信息,否则查询当前用户的私有信息
|
|
|
GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
|
|
|
// 更新用户密码。如果不传用户ID,则表示更新当前用户的密码;
|
|
|
// 如果穿了用户ID,则表示更新指定用户的密码,这时需要验证当前用户的权限
|
|
|
UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 更新用户密码。如果不传用户ID,则表示更新当前用户的密码;
|
|
|
// 如果穿了用户ID,则表示更新指定用户的密码,这时需要验证当前用户的权限
|
|
|
UpdateUserProfile(ctx context.Context, in *User, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 删除用户。需要验证用户权限
|
|
|
DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 新增用户
|
|
|
AddUser(ctx context.Context, in *SetUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 设置用户
|
|
|
SetUser(ctx context.Context, in *SetUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 查询用户列表。对于非管理员,返回相应用户的公开信息;
|
|
|
// 对于管理员,返回相应用户的绝大部分信息
|
|
|
ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error)
|
|
|
// GetUserCaptcha 获取用户验证码
|
|
|
GetUserCaptcha(ctx context.Context, in *GetUserCaptchaRequest, opts ...grpc.CallOption) (*GetUserCaptchaReply, error)
|
|
|
// GetUserCaptcha 获取用户验证码
|
|
|
GetUserPermissions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetUserPermissionsReply, error)
|
|
|
// 用户是否可以上传文档
|
|
|
CanIUploadDocument(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 获取用户动态,包括获取关注的用户的动态
|
|
|
ListUserDynamic(ctx context.Context, in *ListUserDynamicRequest, opts ...grpc.CallOption) (*ListUserDynamicReply, error)
|
|
|
// 每日签到
|
|
|
SignToday(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Sign, error)
|
|
|
// 获取今日已签到记录
|
|
|
GetSignedToday(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Sign, error)
|
|
|
// 查询用户的下载记录
|
|
|
ListUserDownload(ctx context.Context, in *ListUserDownloadRequest, opts ...grpc.CallOption) (*ListUserDownloadReply, error)
|
|
|
// 找回密码:第一步,发送验证码
|
|
|
FindPasswordStepOne(ctx context.Context, in *FindPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 找回密码:第二步,修改密码
|
|
|
FindPasswordStepTwo(ctx context.Context, in *FindPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 发送邮箱验证码。
|
|
|
SendEmailCode(ctx context.Context, in *SendEmailCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
type userAPIClient struct {
|
|
|
cc *grpc.ClientConn
|
|
|
}
|
|
|
|
|
|
func NewUserAPIClient(cc *grpc.ClientConn) UserAPIClient {
|
|
|
return &userAPIClient{cc}
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) Register(ctx context.Context, in *RegisterAndLoginRequest, opts ...grpc.CallOption) (*LoginReply, error) {
|
|
|
out := new(LoginReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/Register", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) Login(ctx context.Context, in *RegisterAndLoginRequest, opts ...grpc.CallOption) (*LoginReply, error) {
|
|
|
out := new(LoginReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/Login", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) Logout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/Logout", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) {
|
|
|
out := new(User)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/GetUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/UpdateUserPassword", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) UpdateUserProfile(ctx context.Context, in *User, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/UpdateUserProfile", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/DeleteUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) AddUser(ctx context.Context, in *SetUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/AddUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) SetUser(ctx context.Context, in *SetUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/SetUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error) {
|
|
|
out := new(ListUserReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/ListUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) GetUserCaptcha(ctx context.Context, in *GetUserCaptchaRequest, opts ...grpc.CallOption) (*GetUserCaptchaReply, error) {
|
|
|
out := new(GetUserCaptchaReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/GetUserCaptcha", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) GetUserPermissions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetUserPermissionsReply, error) {
|
|
|
out := new(GetUserPermissionsReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/GetUserPermissions", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) CanIUploadDocument(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/CanIUploadDocument", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) ListUserDynamic(ctx context.Context, in *ListUserDynamicRequest, opts ...grpc.CallOption) (*ListUserDynamicReply, error) {
|
|
|
out := new(ListUserDynamicReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/ListUserDynamic", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) SignToday(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Sign, error) {
|
|
|
out := new(Sign)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/SignToday", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) GetSignedToday(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Sign, error) {
|
|
|
out := new(Sign)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/GetSignedToday", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) ListUserDownload(ctx context.Context, in *ListUserDownloadRequest, opts ...grpc.CallOption) (*ListUserDownloadReply, error) {
|
|
|
out := new(ListUserDownloadReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/ListUserDownload", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) FindPasswordStepOne(ctx context.Context, in *FindPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/FindPasswordStepOne", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) FindPasswordStepTwo(ctx context.Context, in *FindPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/FindPasswordStepTwo", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userAPIClient) SendEmailCode(ctx context.Context, in *SendEmailCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.v1.UserAPI/SendEmailCode", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
// UserAPIServer is the server API for UserAPI service.
|
|
|
type UserAPIServer interface {
|
|
|
// 用户注册
|
|
|
Register(context.Context, *RegisterAndLoginRequest) (*LoginReply, error)
|
|
|
// 用户登录
|
|
|
Login(context.Context, *RegisterAndLoginRequest) (*LoginReply, error)
|
|
|
// 退出登录
|
|
|
Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
|
|
// 查询用户信息。如果传递了Id参数,则表示查询用户的公开信息,否则查询当前用户的私有信息
|
|
|
GetUser(context.Context, *GetUserRequest) (*User, error)
|
|
|
// 更新用户密码。如果不传用户ID,则表示更新当前用户的密码;
|
|
|
// 如果穿了用户ID,则表示更新指定用户的密码,这时需要验证当前用户的权限
|
|
|
UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error)
|
|
|
// 更新用户密码。如果不传用户ID,则表示更新当前用户的密码;
|
|
|
// 如果穿了用户ID,则表示更新指定用户的密码,这时需要验证当前用户的权限
|
|
|
UpdateUserProfile(context.Context, *User) (*emptypb.Empty, error)
|
|
|
// 删除用户。需要验证用户权限
|
|
|
DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
|
|
|
// 新增用户
|
|
|
AddUser(context.Context, *SetUserRequest) (*emptypb.Empty, error)
|
|
|
// 设置用户
|
|
|
SetUser(context.Context, *SetUserRequest) (*emptypb.Empty, error)
|
|
|
// 查询用户列表。对于非管理员,返回相应用户的公开信息;
|
|
|
// 对于管理员,返回相应用户的绝大部分信息
|
|
|
ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
|
|
|
// GetUserCaptcha 获取用户验证码
|
|
|
GetUserCaptcha(context.Context, *GetUserCaptchaRequest) (*GetUserCaptchaReply, error)
|
|
|
// GetUserCaptcha 获取用户验证码
|
|
|
GetUserPermissions(context.Context, *emptypb.Empty) (*GetUserPermissionsReply, error)
|
|
|
// 用户是否可以上传文档
|
|
|
CanIUploadDocument(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
|
|
// 获取用户动态,包括获取关注的用户的动态
|
|
|
ListUserDynamic(context.Context, *ListUserDynamicRequest) (*ListUserDynamicReply, error)
|
|
|
// 每日签到
|
|
|
SignToday(context.Context, *emptypb.Empty) (*Sign, error)
|
|
|
// 获取今日已签到记录
|
|
|
GetSignedToday(context.Context, *emptypb.Empty) (*Sign, error)
|
|
|
// 查询用户的下载记录
|
|
|
ListUserDownload(context.Context, *ListUserDownloadRequest) (*ListUserDownloadReply, error)
|
|
|
// 找回密码:第一步,发送验证码
|
|
|
FindPasswordStepOne(context.Context, *FindPasswordRequest) (*emptypb.Empty, error)
|
|
|
// 找回密码:第二步,修改密码
|
|
|
FindPasswordStepTwo(context.Context, *FindPasswordRequest) (*emptypb.Empty, error)
|
|
|
// 发送邮箱验证码。
|
|
|
SendEmailCode(context.Context, *SendEmailCodeRequest) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedUserAPIServer can be embedded to have forward compatible implementations.
|
|
|
type UnimplementedUserAPIServer struct {
|
|
|
}
|
|
|
|
|
|
func (*UnimplementedUserAPIServer) Register(ctx context.Context, req *RegisterAndLoginRequest) (*LoginReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) Login(ctx context.Context, req *RegisterAndLoginRequest) (*LoginReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) Logout(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) GetUser(ctx context.Context, req *GetUserRequest) (*User, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserPassword not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) UpdateUserProfile(ctx context.Context, req *User) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserProfile not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) DeleteUser(ctx context.Context, req *DeleteUserRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) AddUser(ctx context.Context, req *SetUserRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddUser not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) SetUser(ctx context.Context, req *SetUserRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SetUser not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) ListUser(ctx context.Context, req *ListUserRequest) (*ListUserReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListUser not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) GetUserCaptcha(ctx context.Context, req *GetUserCaptchaRequest) (*GetUserCaptchaReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserCaptcha not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) GetUserPermissions(ctx context.Context, req *emptypb.Empty) (*GetUserPermissionsReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserPermissions not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) CanIUploadDocument(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CanIUploadDocument not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) ListUserDynamic(ctx context.Context, req *ListUserDynamicRequest) (*ListUserDynamicReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListUserDynamic not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) SignToday(ctx context.Context, req *emptypb.Empty) (*Sign, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SignToday not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) GetSignedToday(ctx context.Context, req *emptypb.Empty) (*Sign, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetSignedToday not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) ListUserDownload(ctx context.Context, req *ListUserDownloadRequest) (*ListUserDownloadReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListUserDownload not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) FindPasswordStepOne(ctx context.Context, req *FindPasswordRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindPasswordStepOne not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) FindPasswordStepTwo(ctx context.Context, req *FindPasswordRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindPasswordStepTwo not implemented")
|
|
|
}
|
|
|
func (*UnimplementedUserAPIServer) SendEmailCode(ctx context.Context, req *SendEmailCodeRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SendEmailCode not implemented")
|
|
|
}
|
|
|
|
|
|
func RegisterUserAPIServer(s *grpc.Server, srv UserAPIServer) {
|
|
|
s.RegisterService(&_UserAPI_serviceDesc, srv)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(RegisterAndLoginRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).Register(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/Register",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).Register(ctx, req.(*RegisterAndLoginRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(RegisterAndLoginRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).Login(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/Login",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).Login(ctx, req.(*RegisterAndLoginRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(emptypb.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).Logout(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/Logout",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).Logout(ctx, req.(*emptypb.Empty))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(GetUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).GetUser(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/GetUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).GetUser(ctx, req.(*GetUserRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_UpdateUserPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(UpdateUserPasswordRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).UpdateUserPassword(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/UpdateUserPassword",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).UpdateUserPassword(ctx, req.(*UpdateUserPasswordRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(User)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).UpdateUserProfile(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/UpdateUserProfile",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).UpdateUserProfile(ctx, req.(*User))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(DeleteUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).DeleteUser(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/DeleteUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).DeleteUser(ctx, req.(*DeleteUserRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_AddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(SetUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).AddUser(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/AddUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).AddUser(ctx, req.(*SetUserRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_SetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(SetUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).SetUser(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/SetUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).SetUser(ctx, req.(*SetUserRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_ListUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ListUserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).ListUser(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/ListUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).ListUser(ctx, req.(*ListUserRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_GetUserCaptcha_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(GetUserCaptchaRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).GetUserCaptcha(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/GetUserCaptcha",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).GetUserCaptcha(ctx, req.(*GetUserCaptchaRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_GetUserPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(emptypb.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).GetUserPermissions(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/GetUserPermissions",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).GetUserPermissions(ctx, req.(*emptypb.Empty))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_CanIUploadDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(emptypb.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).CanIUploadDocument(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/CanIUploadDocument",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).CanIUploadDocument(ctx, req.(*emptypb.Empty))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_ListUserDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ListUserDynamicRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).ListUserDynamic(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/ListUserDynamic",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).ListUserDynamic(ctx, req.(*ListUserDynamicRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_SignToday_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(emptypb.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).SignToday(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/SignToday",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).SignToday(ctx, req.(*emptypb.Empty))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_GetSignedToday_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(emptypb.Empty)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).GetSignedToday(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/GetSignedToday",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).GetSignedToday(ctx, req.(*emptypb.Empty))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_ListUserDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(ListUserDownloadRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).ListUserDownload(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/ListUserDownload",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).ListUserDownload(ctx, req.(*ListUserDownloadRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_FindPasswordStepOne_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(FindPasswordRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).FindPasswordStepOne(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/FindPasswordStepOne",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).FindPasswordStepOne(ctx, req.(*FindPasswordRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_FindPasswordStepTwo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(FindPasswordRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).FindPasswordStepTwo(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/FindPasswordStepTwo",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).FindPasswordStepTwo(ctx, req.(*FindPasswordRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _UserAPI_SendEmailCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(SendEmailCodeRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserAPIServer).SendEmailCode(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/api.v1.UserAPI/SendEmailCode",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserAPIServer).SendEmailCode(ctx, req.(*SendEmailCodeRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
var _UserAPI_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "api.v1.UserAPI",
|
|
|
HandlerType: (*UserAPIServer)(nil),
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
{
|
|
|
MethodName: "Register",
|
|
|
Handler: _UserAPI_Register_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "Login",
|
|
|
Handler: _UserAPI_Login_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "Logout",
|
|
|
Handler: _UserAPI_Logout_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "GetUser",
|
|
|
Handler: _UserAPI_GetUser_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "UpdateUserPassword",
|
|
|
Handler: _UserAPI_UpdateUserPassword_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "UpdateUserProfile",
|
|
|
Handler: _UserAPI_UpdateUserProfile_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "DeleteUser",
|
|
|
Handler: _UserAPI_DeleteUser_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "AddUser",
|
|
|
Handler: _UserAPI_AddUser_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "SetUser",
|
|
|
Handler: _UserAPI_SetUser_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "ListUser",
|
|
|
Handler: _UserAPI_ListUser_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "GetUserCaptcha",
|
|
|
Handler: _UserAPI_GetUserCaptcha_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "GetUserPermissions",
|
|
|
Handler: _UserAPI_GetUserPermissions_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "CanIUploadDocument",
|
|
|
Handler: _UserAPI_CanIUploadDocument_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "ListUserDynamic",
|
|
|
Handler: _UserAPI_ListUserDynamic_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "SignToday",
|
|
|
Handler: _UserAPI_SignToday_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "GetSignedToday",
|
|
|
Handler: _UserAPI_GetSignedToday_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "ListUserDownload",
|
|
|
Handler: _UserAPI_ListUserDownload_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "FindPasswordStepOne",
|
|
|
Handler: _UserAPI_FindPasswordStepOne_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "FindPasswordStepTwo",
|
|
|
Handler: _UserAPI_FindPasswordStepTwo_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "SendEmailCode",
|
|
|
Handler: _UserAPI_SendEmailCode_Handler,
|
|
|
},
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "api/v1/user.proto",
|
|
|
}
|
|
|
|
|
|
func (m *User) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *User) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.CreditCount != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.CreditCount))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0xb0
|
|
|
}
|
|
|
if m.UpdatedAt != nil {
|
|
|
n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.UpdatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.UpdatedAt):])
|
|
|
if err1 != nil {
|
|
|
return 0, err1
|
|
|
}
|
|
|
i -= n1
|
|
|
i = encodeVarintUser(dAtA, i, uint64(n1))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0xaa
|
|
|
}
|
|
|
if m.CreatedAt != nil {
|
|
|
n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedAt):])
|
|
|
if err2 != nil {
|
|
|
return 0, err2
|
|
|
}
|
|
|
i -= n2
|
|
|
i = encodeVarintUser(dAtA, i, uint64(n2))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0xa2
|
|
|
}
|
|
|
if m.LoginAt != nil {
|
|
|
n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LoginAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LoginAt):])
|
|
|
if err3 != nil {
|
|
|
return 0, err3
|
|
|
}
|
|
|
i -= n3
|
|
|
i = encodeVarintUser(dAtA, i, uint64(n3))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0x9a
|
|
|
}
|
|
|
if len(m.GroupId) > 0 {
|
|
|
dAtA5 := make([]byte, len(m.GroupId)*10)
|
|
|
var j4 int
|
|
|
for _, num1 := range m.GroupId {
|
|
|
num := uint64(num1)
|
|
|
for num >= 1<<7 {
|
|
|
dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
num >>= 7
|
|
|
j4++
|
|
|
}
|
|
|
dAtA5[j4] = uint8(num)
|
|
|
j4++
|
|
|
}
|
|
|
i -= j4
|
|
|
copy(dAtA[i:], dAtA5[:j4])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(j4))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0x92
|
|
|
}
|
|
|
if len(m.Realname) > 0 {
|
|
|
i -= len(m.Realname)
|
|
|
copy(dAtA[i:], m.Realname)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Realname)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0x8a
|
|
|
}
|
|
|
if len(m.Identity) > 0 {
|
|
|
i -= len(m.Identity)
|
|
|
copy(dAtA[i:], m.Identity)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Identity)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1
|
|
|
i--
|
|
|
dAtA[i] = 0x82
|
|
|
}
|
|
|
if len(m.Avatar) > 0 {
|
|
|
i -= len(m.Avatar)
|
|
|
copy(dAtA[i:], m.Avatar)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Avatar)))
|
|
|
i--
|
|
|
dAtA[i] = 0x7a
|
|
|
}
|
|
|
if m.Status != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Status))
|
|
|
i--
|
|
|
dAtA[i] = 0x70
|
|
|
}
|
|
|
if m.CommentCount != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.CommentCount))
|
|
|
i--
|
|
|
dAtA[i] = 0x68
|
|
|
}
|
|
|
if m.FavoriteCount != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.FavoriteCount))
|
|
|
i--
|
|
|
dAtA[i] = 0x60
|
|
|
}
|
|
|
if m.FansCount != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.FansCount))
|
|
|
i--
|
|
|
dAtA[i] = 0x58
|
|
|
}
|
|
|
if m.FollowCount != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.FollowCount))
|
|
|
i--
|
|
|
dAtA[i] = 0x50
|
|
|
}
|
|
|
if m.DocCount != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.DocCount))
|
|
|
i--
|
|
|
dAtA[i] = 0x48
|
|
|
}
|
|
|
if len(m.RegisterIp) > 0 {
|
|
|
i -= len(m.RegisterIp)
|
|
|
copy(dAtA[i:], m.RegisterIp)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.RegisterIp)))
|
|
|
i--
|
|
|
dAtA[i] = 0x42
|
|
|
}
|
|
|
if len(m.LastLoginIp) > 0 {
|
|
|
i -= len(m.LastLoginIp)
|
|
|
copy(dAtA[i:], m.LastLoginIp)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.LastLoginIp)))
|
|
|
i--
|
|
|
dAtA[i] = 0x3a
|
|
|
}
|
|
|
if len(m.Signature) > 0 {
|
|
|
i -= len(m.Signature)
|
|
|
copy(dAtA[i:], m.Signature)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Signature)))
|
|
|
i--
|
|
|
dAtA[i] = 0x32
|
|
|
}
|
|
|
if len(m.Address) > 0 {
|
|
|
i -= len(m.Address)
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Address)))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if len(m.Email) > 0 {
|
|
|
i -= len(m.Email)
|
|
|
copy(dAtA[i:], m.Email)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Email)))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if len(m.Mobile) > 0 {
|
|
|
i -= len(m.Mobile)
|
|
|
copy(dAtA[i:], m.Mobile)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Mobile)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.Username) > 0 {
|
|
|
i -= len(m.Username)
|
|
|
copy(dAtA[i:], m.Username)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Username)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if m.Id != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Id))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Code) > 0 {
|
|
|
i -= len(m.Code)
|
|
|
copy(dAtA[i:], m.Code)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Code)))
|
|
|
i--
|
|
|
dAtA[i] = 0x32
|
|
|
}
|
|
|
if len(m.Email) > 0 {
|
|
|
i -= len(m.Email)
|
|
|
copy(dAtA[i:], m.Email)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Email)))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if len(m.CaptchaId) > 0 {
|
|
|
i -= len(m.CaptchaId)
|
|
|
copy(dAtA[i:], m.CaptchaId)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.CaptchaId)))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if len(m.Captcha) > 0 {
|
|
|
i -= len(m.Captcha)
|
|
|
copy(dAtA[i:], m.Captcha)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Captcha)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.Password) > 0 {
|
|
|
i -= len(m.Password)
|
|
|
copy(dAtA[i:], m.Password)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Password)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if len(m.Username) > 0 {
|
|
|
i -= len(m.Username)
|
|
|
copy(dAtA[i:], m.Username)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Username)))
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Type != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Type))
|
|
|
i--
|
|
|
dAtA[i] = 0x20
|
|
|
}
|
|
|
if len(m.CaptchaId) > 0 {
|
|
|
i -= len(m.CaptchaId)
|
|
|
copy(dAtA[i:], m.CaptchaId)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.CaptchaId)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.Captcha) > 0 {
|
|
|
i -= len(m.Captcha)
|
|
|
copy(dAtA[i:], m.Captcha)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Captcha)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if len(m.Email) > 0 {
|
|
|
i -= len(m.Email)
|
|
|
copy(dAtA[i:], m.Email)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Email)))
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Type) > 0 {
|
|
|
i -= len(m.Type)
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Type)))
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *LoginReply) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *LoginReply) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *LoginReply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.User != nil {
|
|
|
{
|
|
|
size, err := m.User.MarshalToSizedBuffer(dAtA[:i])
|
|
|
if err != nil {
|
|
|
return 0, err
|
|
|
}
|
|
|
i -= size
|
|
|
i = encodeVarintUser(dAtA, i, uint64(size))
|
|
|
}
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if len(m.Token) > 0 {
|
|
|
i -= len(m.Token)
|
|
|
copy(dAtA[i:], m.Token)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Token)))
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *DeleteUserRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *DeleteUserRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *DeleteUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Id) > 0 {
|
|
|
dAtA8 := make([]byte, len(m.Id)*10)
|
|
|
var j7 int
|
|
|
for _, num1 := range m.Id {
|
|
|
num := uint64(num1)
|
|
|
for num >= 1<<7 {
|
|
|
dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
num >>= 7
|
|
|
j7++
|
|
|
}
|
|
|
dAtA8[j7] = uint8(num)
|
|
|
j7++
|
|
|
}
|
|
|
i -= j7
|
|
|
copy(dAtA[i:], dAtA8[:j7])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(j7))
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Id))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.CaptchaId) > 0 {
|
|
|
i -= len(m.CaptchaId)
|
|
|
copy(dAtA[i:], m.CaptchaId)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.CaptchaId)))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if len(m.Captcha) > 0 {
|
|
|
i -= len(m.Captcha)
|
|
|
copy(dAtA[i:], m.Captcha)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Captcha)))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if len(m.Password) > 0 {
|
|
|
i -= len(m.Password)
|
|
|
copy(dAtA[i:], m.Password)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Password)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.Token) > 0 {
|
|
|
i -= len(m.Token)
|
|
|
copy(dAtA[i:], m.Token)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Token)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if len(m.Email) > 0 {
|
|
|
i -= len(m.Email)
|
|
|
copy(dAtA[i:], m.Email)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Email)))
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Field) > 0 {
|
|
|
for iNdEx := len(m.Field) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
i -= len(m.Field[iNdEx])
|
|
|
copy(dAtA[i:], m.Field[iNdEx])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Field[iNdEx])))
|
|
|
i--
|
|
|
dAtA[i] = 0x4a
|
|
|
}
|
|
|
}
|
|
|
if m.Limit != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Limit))
|
|
|
i--
|
|
|
dAtA[i] = 0x40
|
|
|
}
|
|
|
if len(m.Status) > 0 {
|
|
|
dAtA10 := make([]byte, len(m.Status)*10)
|
|
|
var j9 int
|
|
|
for _, num1 := range m.Status {
|
|
|
num := uint64(num1)
|
|
|
for num >= 1<<7 {
|
|
|
dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
num >>= 7
|
|
|
j9++
|
|
|
}
|
|
|
dAtA10[j9] = uint8(num)
|
|
|
j9++
|
|
|
}
|
|
|
i -= j9
|
|
|
copy(dAtA[i:], dAtA10[:j9])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(j9))
|
|
|
i--
|
|
|
dAtA[i] = 0x3a
|
|
|
}
|
|
|
if len(m.GroupId) > 0 {
|
|
|
dAtA12 := make([]byte, len(m.GroupId)*10)
|
|
|
var j11 int
|
|
|
for _, num1 := range m.GroupId {
|
|
|
num := uint64(num1)
|
|
|
for num >= 1<<7 {
|
|
|
dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
num >>= 7
|
|
|
j11++
|
|
|
}
|
|
|
dAtA12[j11] = uint8(num)
|
|
|
j11++
|
|
|
}
|
|
|
i -= j11
|
|
|
copy(dAtA[i:], dAtA12[:j11])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(j11))
|
|
|
i--
|
|
|
dAtA[i] = 0x32
|
|
|
}
|
|
|
if len(m.Id) > 0 {
|
|
|
dAtA14 := make([]byte, len(m.Id)*10)
|
|
|
var j13 int
|
|
|
for _, num1 := range m.Id {
|
|
|
num := uint64(num1)
|
|
|
for num >= 1<<7 {
|
|
|
dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
num >>= 7
|
|
|
j13++
|
|
|
}
|
|
|
dAtA14[j13] = uint8(num)
|
|
|
j13++
|
|
|
}
|
|
|
i -= j13
|
|
|
copy(dAtA[i:], dAtA14[:j13])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(j13))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if len(m.Sort) > 0 {
|
|
|
i -= len(m.Sort)
|
|
|
copy(dAtA[i:], m.Sort)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Sort)))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if len(m.Wd) > 0 {
|
|
|
i -= len(m.Wd)
|
|
|
copy(dAtA[i:], m.Wd)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Wd)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if m.Size_ != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Size_))
|
|
|
i--
|
|
|
dAtA[i] = 0x10
|
|
|
}
|
|
|
if m.Page != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Page))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserReply) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserReply) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *ListUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.User) > 0 {
|
|
|
for iNdEx := len(m.User) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
{
|
|
|
size, err := m.User[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
if err != nil {
|
|
|
return 0, err
|
|
|
}
|
|
|
i -= size
|
|
|
i = encodeVarintUser(dAtA, i, uint64(size))
|
|
|
}
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
}
|
|
|
if m.Total != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Total))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Type) > 0 {
|
|
|
i -= len(m.Type)
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Type)))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if len(m.Captcha) > 0 {
|
|
|
i -= len(m.Captcha)
|
|
|
copy(dAtA[i:], m.Captcha)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Captcha)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.Id) > 0 {
|
|
|
i -= len(m.Id)
|
|
|
copy(dAtA[i:], m.Id)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Id)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if m.Enable {
|
|
|
i--
|
|
|
if m.Enable {
|
|
|
dAtA[i] = 1
|
|
|
} else {
|
|
|
dAtA[i] = 0
|
|
|
}
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.NewPassword) > 0 {
|
|
|
i -= len(m.NewPassword)
|
|
|
copy(dAtA[i:], m.NewPassword)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.NewPassword)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.OldPassword) > 0 {
|
|
|
i -= len(m.OldPassword)
|
|
|
copy(dAtA[i:], m.OldPassword)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.OldPassword)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if m.Id != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Id))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserPermissionsReply) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUserPermissionsReply) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *GetUserPermissionsReply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Permission) > 0 {
|
|
|
for iNdEx := len(m.Permission) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
{
|
|
|
size, err := m.Permission[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
if err != nil {
|
|
|
return 0, err
|
|
|
}
|
|
|
i -= size
|
|
|
i = encodeVarintUser(dAtA, i, uint64(size))
|
|
|
}
|
|
|
i--
|
|
|
dAtA[i] = 0xa
|
|
|
}
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Email) > 0 {
|
|
|
i -= len(m.Email)
|
|
|
copy(dAtA[i:], m.Email)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Email)))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if len(m.GroupId) > 0 {
|
|
|
dAtA16 := make([]byte, len(m.GroupId)*10)
|
|
|
var j15 int
|
|
|
for _, num1 := range m.GroupId {
|
|
|
num := uint64(num1)
|
|
|
for num >= 1<<7 {
|
|
|
dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80)
|
|
|
num >>= 7
|
|
|
j15++
|
|
|
}
|
|
|
dAtA16[j15] = uint8(num)
|
|
|
j15++
|
|
|
}
|
|
|
i -= j15
|
|
|
copy(dAtA[i:], dAtA16[:j15])
|
|
|
i = encodeVarintUser(dAtA, i, uint64(j15))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if len(m.Password) > 0 {
|
|
|
i -= len(m.Password)
|
|
|
copy(dAtA[i:], m.Password)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Password)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if len(m.Username) > 0 {
|
|
|
i -= len(m.Username)
|
|
|
copy(dAtA[i:], m.Username)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Username)))
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
if m.Id != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Id))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Username) > 0 {
|
|
|
i -= len(m.Username)
|
|
|
copy(dAtA[i:], m.Username)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Username)))
|
|
|
i--
|
|
|
dAtA[i] = 0x3a
|
|
|
}
|
|
|
if m.UpdatedAt != nil {
|
|
|
n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.UpdatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.UpdatedAt):])
|
|
|
if err17 != nil {
|
|
|
return 0, err17
|
|
|
}
|
|
|
i -= n17
|
|
|
i = encodeVarintUser(dAtA, i, uint64(n17))
|
|
|
i--
|
|
|
dAtA[i] = 0x32
|
|
|
}
|
|
|
if m.CreatedAt != nil {
|
|
|
n18, err18 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedAt):])
|
|
|
if err18 != nil {
|
|
|
return 0, err18
|
|
|
}
|
|
|
i -= n18
|
|
|
i = encodeVarintUser(dAtA, i, uint64(n18))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if m.Type != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Type))
|
|
|
i--
|
|
|
dAtA[i] = 0x20
|
|
|
}
|
|
|
if len(m.Content) > 0 {
|
|
|
i -= len(m.Content)
|
|
|
copy(dAtA[i:], m.Content)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Content)))
|
|
|
i--
|
|
|
dAtA[i] = 0x1a
|
|
|
}
|
|
|
if m.UserId != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.UserId))
|
|
|
i--
|
|
|
dAtA[i] = 0x10
|
|
|
}
|
|
|
if m.Id != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Id))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Size_ != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Size_))
|
|
|
i--
|
|
|
dAtA[i] = 0x10
|
|
|
}
|
|
|
if m.Page != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Page))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicReply) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicReply) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicReply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Dynamic) > 0 {
|
|
|
for iNdEx := len(m.Dynamic) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
{
|
|
|
size, err := m.Dynamic[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
if err != nil {
|
|
|
return 0, err
|
|
|
}
|
|
|
i -= size
|
|
|
i = encodeVarintUser(dAtA, i, uint64(size))
|
|
|
}
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
}
|
|
|
if m.Total != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Total))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *Sign) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *Sign) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *Sign) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Award != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Award))
|
|
|
i--
|
|
|
dAtA[i] = 0x30
|
|
|
}
|
|
|
if m.CreatedAt != nil {
|
|
|
n19, err19 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedAt):])
|
|
|
if err19 != nil {
|
|
|
return 0, err19
|
|
|
}
|
|
|
i -= n19
|
|
|
i = encodeVarintUser(dAtA, i, uint64(n19))
|
|
|
i--
|
|
|
dAtA[i] = 0x2a
|
|
|
}
|
|
|
if len(m.Ip) > 0 {
|
|
|
i -= len(m.Ip)
|
|
|
copy(dAtA[i:], m.Ip)
|
|
|
i = encodeVarintUser(dAtA, i, uint64(len(m.Ip)))
|
|
|
i--
|
|
|
dAtA[i] = 0x22
|
|
|
}
|
|
|
if m.SignAt != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.SignAt))
|
|
|
i--
|
|
|
dAtA[i] = 0x18
|
|
|
}
|
|
|
if m.UserId != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.UserId))
|
|
|
i--
|
|
|
dAtA[i] = 0x10
|
|
|
}
|
|
|
if m.Id != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Id))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadRequest) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Size_ != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Size_))
|
|
|
i--
|
|
|
dAtA[i] = 0x10
|
|
|
}
|
|
|
if m.Page != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Page))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadReply) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return dAtA[:n], nil
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadReply) MarshalTo(dAtA []byte) (int, error) {
|
|
|
size := m.Size()
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadReply) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Download) > 0 {
|
|
|
for iNdEx := len(m.Download) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
{
|
|
|
size, err := m.Download[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
if err != nil {
|
|
|
return 0, err
|
|
|
}
|
|
|
i -= size
|
|
|
i = encodeVarintUser(dAtA, i, uint64(size))
|
|
|
}
|
|
|
i--
|
|
|
dAtA[i] = 0x12
|
|
|
}
|
|
|
}
|
|
|
if m.Total != 0 {
|
|
|
i = encodeVarintUser(dAtA, i, uint64(m.Total))
|
|
|
i--
|
|
|
dAtA[i] = 0x8
|
|
|
}
|
|
|
return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func encodeVarintUser(dAtA []byte, offset int, v uint64) int {
|
|
|
offset -= sovUser(v)
|
|
|
base := offset
|
|
|
for v >= 1<<7 {
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
v >>= 7
|
|
|
offset++
|
|
|
}
|
|
|
dAtA[offset] = uint8(v)
|
|
|
return base
|
|
|
}
|
|
|
func (m *User) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Id))
|
|
|
}
|
|
|
l = len(m.Username)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Mobile)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Email)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Address)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Signature)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.LastLoginIp)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.RegisterIp)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.DocCount != 0 {
|
|
|
n += 1 + sovUser(uint64(m.DocCount))
|
|
|
}
|
|
|
if m.FollowCount != 0 {
|
|
|
n += 1 + sovUser(uint64(m.FollowCount))
|
|
|
}
|
|
|
if m.FansCount != 0 {
|
|
|
n += 1 + sovUser(uint64(m.FansCount))
|
|
|
}
|
|
|
if m.FavoriteCount != 0 {
|
|
|
n += 1 + sovUser(uint64(m.FavoriteCount))
|
|
|
}
|
|
|
if m.CommentCount != 0 {
|
|
|
n += 1 + sovUser(uint64(m.CommentCount))
|
|
|
}
|
|
|
if m.Status != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Status))
|
|
|
}
|
|
|
l = len(m.Avatar)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Identity)
|
|
|
if l > 0 {
|
|
|
n += 2 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Realname)
|
|
|
if l > 0 {
|
|
|
n += 2 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if len(m.GroupId) > 0 {
|
|
|
l = 0
|
|
|
for _, e := range m.GroupId {
|
|
|
l += sovUser(uint64(e))
|
|
|
}
|
|
|
n += 2 + sovUser(uint64(l)) + l
|
|
|
}
|
|
|
if m.LoginAt != nil {
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LoginAt)
|
|
|
n += 2 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.CreatedAt != nil {
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedAt)
|
|
|
n += 2 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.UpdatedAt != nil {
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.UpdatedAt)
|
|
|
n += 2 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.CreditCount != 0 {
|
|
|
n += 2 + sovUser(uint64(m.CreditCount))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *RegisterAndLoginRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
l = len(m.Username)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Password)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Captcha)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.CaptchaId)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Email)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Code)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *SendEmailCodeRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
l = len(m.Email)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Captcha)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.CaptchaId)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.Type != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Type))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
l = len(m.Type)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *LoginReply) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
l = len(m.Token)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.User != nil {
|
|
|
l = m.User.Size()
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *DeleteUserRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Id) > 0 {
|
|
|
l = 0
|
|
|
for _, e := range m.Id {
|
|
|
l += sovUser(uint64(e))
|
|
|
}
|
|
|
n += 1 + sovUser(uint64(l)) + l
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *GetUserRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Id))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *FindPasswordRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
l = len(m.Email)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Token)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Password)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Captcha)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.CaptchaId)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *ListUserRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Page != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Page))
|
|
|
}
|
|
|
if m.Size_ != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Size_))
|
|
|
}
|
|
|
l = len(m.Wd)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Sort)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if len(m.Id) > 0 {
|
|
|
l = 0
|
|
|
for _, e := range m.Id {
|
|
|
l += sovUser(uint64(e))
|
|
|
}
|
|
|
n += 1 + sovUser(uint64(l)) + l
|
|
|
}
|
|
|
if len(m.GroupId) > 0 {
|
|
|
l = 0
|
|
|
for _, e := range m.GroupId {
|
|
|
l += sovUser(uint64(e))
|
|
|
}
|
|
|
n += 1 + sovUser(uint64(l)) + l
|
|
|
}
|
|
|
if len(m.Status) > 0 {
|
|
|
l = 0
|
|
|
for _, e := range m.Status {
|
|
|
l += sovUser(uint64(e))
|
|
|
}
|
|
|
n += 1 + sovUser(uint64(l)) + l
|
|
|
}
|
|
|
if m.Limit != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Limit))
|
|
|
}
|
|
|
if len(m.Field) > 0 {
|
|
|
for _, s := range m.Field {
|
|
|
l = len(s)
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *ListUserReply) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Total != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Total))
|
|
|
}
|
|
|
if len(m.User) > 0 {
|
|
|
for _, e := range m.User {
|
|
|
l = e.Size()
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *GetUserCaptchaReply) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Enable {
|
|
|
n += 2
|
|
|
}
|
|
|
l = len(m.Id)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Captcha)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Type)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserPasswordRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Id))
|
|
|
}
|
|
|
l = len(m.OldPassword)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.NewPassword)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *GetUserPermissionsReply) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if len(m.Permission) > 0 {
|
|
|
for _, e := range m.Permission {
|
|
|
l = e.Size()
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *SetUserRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Id))
|
|
|
}
|
|
|
l = len(m.Username)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Password)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if len(m.GroupId) > 0 {
|
|
|
l = 0
|
|
|
for _, e := range m.GroupId {
|
|
|
l += sovUser(uint64(e))
|
|
|
}
|
|
|
n += 1 + sovUser(uint64(l)) + l
|
|
|
}
|
|
|
l = len(m.Email)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *Dynamic) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Id))
|
|
|
}
|
|
|
if m.UserId != 0 {
|
|
|
n += 1 + sovUser(uint64(m.UserId))
|
|
|
}
|
|
|
l = len(m.Content)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.Type != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Type))
|
|
|
}
|
|
|
if m.CreatedAt != nil {
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedAt)
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.UpdatedAt != nil {
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.UpdatedAt)
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
l = len(m.Username)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Page != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Page))
|
|
|
}
|
|
|
if m.Size_ != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Size_))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDynamicReply) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Total != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Total))
|
|
|
}
|
|
|
if len(m.Dynamic) > 0 {
|
|
|
for _, e := range m.Dynamic {
|
|
|
l = e.Size()
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *Sign) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Id != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Id))
|
|
|
}
|
|
|
if m.UserId != 0 {
|
|
|
n += 1 + sovUser(uint64(m.UserId))
|
|
|
}
|
|
|
if m.SignAt != 0 {
|
|
|
n += 1 + sovUser(uint64(m.SignAt))
|
|
|
}
|
|
|
l = len(m.Ip)
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.CreatedAt != nil {
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedAt)
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
if m.Award != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Award))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadRequest) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Page != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Page))
|
|
|
}
|
|
|
if m.Size_ != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Size_))
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func (m *ListUserDownloadReply) Size() (n int) {
|
|
|
if m == nil {
|
|
|
return 0
|
|
|
}
|
|
|
var l int
|
|
|
_ = l
|
|
|
if m.Total != 0 {
|
|
|
n += 1 + sovUser(uint64(m.Total))
|
|
|
}
|
|
|
if len(m.Download) > 0 {
|
|
|
for _, e := range m.Download {
|
|
|
l = e.Size()
|
|
|
n += 1 + l + sovUser(uint64(l))
|
|
|
}
|
|
|
}
|
|
|
return n
|
|
|
}
|
|
|
|
|
|
func sovUser(x uint64) (n int) {
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
|
}
|
|
|
func sozUser(x uint64) (n int) {
|
|
|
return sovUser(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
}
|
|
|
func (m *User) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: User: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: User: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
m.Id = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Id |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Username = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mobile", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Mobile = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Email = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 5:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Address = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 6:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Signature = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 7:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastLoginIp", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.LastLoginIp = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 8:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RegisterIp", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.RegisterIp = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 9:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DocCount", wireType)
|
|
|
}
|
|
|
m.DocCount = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.DocCount |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 10:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FollowCount", wireType)
|
|
|
}
|
|
|
m.FollowCount = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.FollowCount |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 11:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FansCount", wireType)
|
|
|
}
|
|
|
m.FansCount = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.FansCount |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 12:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FavoriteCount", wireType)
|
|
|
}
|
|
|
m.FavoriteCount = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.FavoriteCount |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 13:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CommentCount", wireType)
|
|
|
}
|
|
|
m.CommentCount = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.CommentCount |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 14:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
}
|
|
|
m.Status = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Status |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 15:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Avatar", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Avatar = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 16:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Identity = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 17:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Realname", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Realname = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 18:
|
|
|
if wireType == 0 {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.GroupId = append(m.GroupId, v)
|
|
|
} else if wireType == 2 {
|
|
|
var packedLen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if packedLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + packedLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
var elementCount int
|
|
|
var count int
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
if integer < 128 {
|
|
|
count++
|
|
|
}
|
|
|
}
|
|
|
elementCount = count
|
|
|
if elementCount != 0 && len(m.GroupId) == 0 {
|
|
|
m.GroupId = make([]int64, 0, elementCount)
|
|
|
}
|
|
|
for iNdEx < postIndex {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.GroupId = append(m.GroupId, v)
|
|
|
}
|
|
|
} else {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
|
|
|
}
|
|
|
case 19:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LoginAt", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.LoginAt == nil {
|
|
|
m.LoginAt = new(time.Time)
|
|
|
}
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LoginAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
case 20:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.CreatedAt == nil {
|
|
|
m.CreatedAt = new(time.Time)
|
|
|
}
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
case 21:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.UpdatedAt == nil {
|
|
|
m.UpdatedAt = new(time.Time)
|
|
|
}
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
case 22:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreditCount", wireType)
|
|
|
}
|
|
|
m.CreditCount = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.CreditCount |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *RegisterAndLoginRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: RegisterAndLoginRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: RegisterAndLoginRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Username = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Password = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Captcha", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Captcha = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CaptchaId", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.CaptchaId = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 5:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Email = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 6:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Code = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *SendEmailCodeRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: SendEmailCodeRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: SendEmailCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Email = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Captcha", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Captcha = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CaptchaId", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.CaptchaId = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
}
|
|
|
m.Type = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Type |= EmailCodeType(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *GetUserCaptchaRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: GetUserCaptchaRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: GetUserCaptchaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Type = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *LoginReply) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: LoginReply: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: LoginReply: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Token = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.User == nil {
|
|
|
m.User = &User{}
|
|
|
}
|
|
|
if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: DeleteUserRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: DeleteUserRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType == 0 {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Id = append(m.Id, v)
|
|
|
} else if wireType == 2 {
|
|
|
var packedLen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if packedLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + packedLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
var elementCount int
|
|
|
var count int
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
if integer < 128 {
|
|
|
count++
|
|
|
}
|
|
|
}
|
|
|
elementCount = count
|
|
|
if elementCount != 0 && len(m.Id) == 0 {
|
|
|
m.Id = make([]int64, 0, elementCount)
|
|
|
}
|
|
|
for iNdEx < postIndex {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Id = append(m.Id, v)
|
|
|
}
|
|
|
} else {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *GetUserRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: GetUserRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: GetUserRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
m.Id = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Id |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *FindPasswordRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: FindPasswordRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: FindPasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Email = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Token = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Password = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Captcha", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Captcha = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 5:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CaptchaId", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.CaptchaId = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *ListUserRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: ListUserRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: ListUserRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
|
|
|
}
|
|
|
m.Page = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Page |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
|
|
|
}
|
|
|
m.Size_ = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Size_ |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Wd", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Wd = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Sort = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 5:
|
|
|
if wireType == 0 {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Id = append(m.Id, v)
|
|
|
} else if wireType == 2 {
|
|
|
var packedLen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if packedLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + packedLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
var elementCount int
|
|
|
var count int
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
if integer < 128 {
|
|
|
count++
|
|
|
}
|
|
|
}
|
|
|
elementCount = count
|
|
|
if elementCount != 0 && len(m.Id) == 0 {
|
|
|
m.Id = make([]int64, 0, elementCount)
|
|
|
}
|
|
|
for iNdEx < postIndex {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Id = append(m.Id, v)
|
|
|
}
|
|
|
} else {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
case 6:
|
|
|
if wireType == 0 {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.GroupId = append(m.GroupId, v)
|
|
|
} else if wireType == 2 {
|
|
|
var packedLen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if packedLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + packedLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
var elementCount int
|
|
|
var count int
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
if integer < 128 {
|
|
|
count++
|
|
|
}
|
|
|
}
|
|
|
elementCount = count
|
|
|
if elementCount != 0 && len(m.GroupId) == 0 {
|
|
|
m.GroupId = make([]int64, 0, elementCount)
|
|
|
}
|
|
|
for iNdEx < postIndex {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.GroupId = append(m.GroupId, v)
|
|
|
}
|
|
|
} else {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
|
|
|
}
|
|
|
case 7:
|
|
|
if wireType == 0 {
|
|
|
var v int32
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Status = append(m.Status, v)
|
|
|
} else if wireType == 2 {
|
|
|
var packedLen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if packedLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + packedLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
var elementCount int
|
|
|
var count int
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
if integer < 128 {
|
|
|
count++
|
|
|
}
|
|
|
}
|
|
|
elementCount = count
|
|
|
if elementCount != 0 && len(m.Status) == 0 {
|
|
|
m.Status = make([]int32, 0, elementCount)
|
|
|
}
|
|
|
for iNdEx < postIndex {
|
|
|
var v int32
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Status = append(m.Status, v)
|
|
|
}
|
|
|
} else {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
}
|
|
|
case 8:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
|
|
|
}
|
|
|
m.Limit = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Limit |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 9:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Field = append(m.Field, string(dAtA[iNdEx:postIndex]))
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *ListUserReply) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: ListUserReply: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: ListUserReply: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
|
|
|
}
|
|
|
m.Total = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Total |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.User = append(m.User, &User{})
|
|
|
if err := m.User[len(m.User)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *GetUserCaptchaReply) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: GetUserCaptchaReply: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: GetUserCaptchaReply: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType)
|
|
|
}
|
|
|
var v int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.Enable = bool(v != 0)
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Captcha", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Captcha = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Type = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *UpdateUserPasswordRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: UpdateUserPasswordRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: UpdateUserPasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
m.Id = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Id |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OldPassword", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.OldPassword = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NewPassword", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.NewPassword = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *GetUserPermissionsReply) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: GetUserPermissionsReply: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: GetUserPermissionsReply: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Permission = append(m.Permission, &Permission{})
|
|
|
if err := m.Permission[len(m.Permission)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *SetUserRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: SetUserRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: SetUserRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
m.Id = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Id |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Username = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Password = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType == 0 {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.GroupId = append(m.GroupId, v)
|
|
|
} else if wireType == 2 {
|
|
|
var packedLen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
packedLen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if packedLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + packedLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
var elementCount int
|
|
|
var count int
|
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
|
if integer < 128 {
|
|
|
count++
|
|
|
}
|
|
|
}
|
|
|
elementCount = count
|
|
|
if elementCount != 0 && len(m.GroupId) == 0 {
|
|
|
m.GroupId = make([]int64, 0, elementCount)
|
|
|
}
|
|
|
for iNdEx < postIndex {
|
|
|
var v int64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
v |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
m.GroupId = append(m.GroupId, v)
|
|
|
}
|
|
|
} else {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
|
|
|
}
|
|
|
case 5:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Email = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *Dynamic) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: Dynamic: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: Dynamic: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
m.Id = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Id |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
|
|
|
}
|
|
|
m.UserId = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.UserId |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 3:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Content = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 4:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
}
|
|
|
m.Type = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Type |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 5:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.CreatedAt == nil {
|
|
|
m.CreatedAt = new(time.Time)
|
|
|
}
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
case 6:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.UpdatedAt == nil {
|
|
|
m.UpdatedAt = new(time.Time)
|
|
|
}
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
case 7:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Username = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *ListUserDynamicRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: ListUserDynamicRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: ListUserDynamicRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
|
|
|
}
|
|
|
m.Page = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Page |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
|
|
|
}
|
|
|
m.Size_ = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Size_ |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *ListUserDynamicReply) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: ListUserDynamicReply: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: ListUserDynamicReply: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
|
|
|
}
|
|
|
m.Total = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Total |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Dynamic", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Dynamic = append(m.Dynamic, &Dynamic{})
|
|
|
if err := m.Dynamic[len(m.Dynamic)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *Sign) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: Sign: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: Sign: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
|
}
|
|
|
m.Id = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Id |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
|
|
|
}
|
|
|
m.UserId = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.UserId |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 3:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SignAt", wireType)
|
|
|
}
|
|
|
m.SignAt = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.SignAt |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 4:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
|
|
|
}
|
|
|
var stringLen uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
intStringLen := int(stringLen)
|
|
|
if intStringLen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Ip = string(dAtA[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
case 5:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
if m.CreatedAt == nil {
|
|
|
m.CreatedAt = new(time.Time)
|
|
|
}
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
case 6:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Award", wireType)
|
|
|
}
|
|
|
m.Award = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Award |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *ListUserDownloadRequest) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: ListUserDownloadRequest: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: ListUserDownloadRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
|
|
|
}
|
|
|
m.Page = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Page |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
|
|
|
}
|
|
|
m.Size_ = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Size_ |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func (m *ListUserDownloadReply) Unmarshal(dAtA []byte) error {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
for iNdEx < l {
|
|
|
preIndex := iNdEx
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
wireType := int(wire & 0x7)
|
|
|
if wireType == 4 {
|
|
|
return fmt.Errorf("proto: ListUserDownloadReply: wiretype end group for non-group")
|
|
|
}
|
|
|
if fieldNum <= 0 {
|
|
|
return fmt.Errorf("proto: ListUserDownloadReply: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
}
|
|
|
switch fieldNum {
|
|
|
case 1:
|
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
|
|
|
}
|
|
|
m.Total = 0
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
m.Total |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 2:
|
|
|
if wireType != 2 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Download", wireType)
|
|
|
}
|
|
|
var msglen int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if msglen < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
if postIndex < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
m.Download = append(m.Download, &Download{})
|
|
|
if err := m.Download[len(m.Download)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
iNdEx = postIndex
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipUser(dAtA[iNdEx:])
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
return ErrInvalidLengthUser
|
|
|
}
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx += skippy
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if iNdEx > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
func skipUser(dAtA []byte) (n int, err error) {
|
|
|
l := len(dAtA)
|
|
|
iNdEx := 0
|
|
|
depth := 0
|
|
|
for iNdEx < l {
|
|
|
var wire uint64
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return 0, ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
wireType := int(wire & 0x7)
|
|
|
switch wireType {
|
|
|
case 0:
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return 0, ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
}
|
|
|
iNdEx++
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
case 1:
|
|
|
iNdEx += 8
|
|
|
case 2:
|
|
|
var length int
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
if shift >= 64 {
|
|
|
return 0, ErrIntOverflowUser
|
|
|
}
|
|
|
if iNdEx >= l {
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if length < 0 {
|
|
|
return 0, ErrInvalidLengthUser
|
|
|
}
|
|
|
iNdEx += length
|
|
|
case 3:
|
|
|
depth++
|
|
|
case 4:
|
|
|
if depth == 0 {
|
|
|
return 0, ErrUnexpectedEndOfGroupUser
|
|
|
}
|
|
|
depth--
|
|
|
case 5:
|
|
|
iNdEx += 4
|
|
|
default:
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
}
|
|
|
if iNdEx < 0 {
|
|
|
return 0, ErrInvalidLengthUser
|
|
|
}
|
|
|
if depth == 0 {
|
|
|
return iNdEx, nil
|
|
|
}
|
|
|
}
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
ErrIntOverflowUser = fmt.Errorf("proto: integer overflow")
|
|
|
ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group")
|
|
|
)
|