user

package
v0.0.0-...-489c00f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserHandler

func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error

Types

type CommonOutput

type CommonOutput struct {
	HttpCode             int32    `protobuf:"varint,1,opt,name=http_code,json=httpCode,proto3" json:"http_code,omitempty"`
	Code                 int32    `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	Detail               string   `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"`
	Data                 []byte   `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

message GetBackUerInfoInput { } message GetChannelInfoInput { } message GetRoleInfoInput { }

message BackLoginInput{
   string back_name=1;
   string password=2;
}
message AddAccessInput {
   string acs_name = 1;
   string acs_tag = 2;
}
message DeleteAccessInput {
   string acs_name = 1;
   string acs_tag = 2;
}

message GetAccessListInput { } message GetRoleListInput { }

message AddRoleInput {
   string role_name = 1;
}
message EditRoleInput {
   string rolename_old = 1;
   string rolename_new = 2;
}
message DeleteRoleInput {
   string rolename = 1;
}
message AddUserInput {
   string real_name = 1;
   int32 gender = 2;
   int32 age = 3;
   string id_card = 4;
   string mobile = 5;
   string address = 6;
   string role_name = 7;
   string user_name = 8;
   string password = 9;
   string nick_name = 10;
   string avatar = 11;
   int32 channel_id = 12;
   string last_login = 13;
   int32 status = 14;
}
message DelUserInput {
   string real_name = 1;
   string mobile = 2;
   string user_name = 3;
   string nick_name = 4;
   int32 status = 5;
}

func (*CommonOutput) Descriptor

func (*CommonOutput) Descriptor() ([]byte, []int)

func (*CommonOutput) GetCode

func (m *CommonOutput) GetCode() int32

func (*CommonOutput) GetData

func (m *CommonOutput) GetData() []byte

func (*CommonOutput) GetDetail

func (m *CommonOutput) GetDetail() string

func (*CommonOutput) GetHttpCode

func (m *CommonOutput) GetHttpCode() int32

func (*CommonOutput) GetMsg

func (m *CommonOutput) GetMsg() string

func (*CommonOutput) ProtoMessage

func (*CommonOutput) ProtoMessage()

func (*CommonOutput) Reset

func (m *CommonOutput) Reset()

func (*CommonOutput) String

func (m *CommonOutput) String() string

func (*CommonOutput) XXX_DiscardUnknown

func (m *CommonOutput) XXX_DiscardUnknown()

func (*CommonOutput) XXX_Marshal

func (m *CommonOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommonOutput) XXX_Merge

func (m *CommonOutput) XXX_Merge(src proto.Message)

func (*CommonOutput) XXX_Size

func (m *CommonOutput) XXX_Size() int

func (*CommonOutput) XXX_Unmarshal

func (m *CommonOutput) XXX_Unmarshal(b []byte) error

type MultiLoginMobileInput

type MultiLoginMobileInput struct {
	Mobile               string   `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Code                 string   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

**********************************************************

func (*MultiLoginMobileInput) Descriptor

func (*MultiLoginMobileInput) Descriptor() ([]byte, []int)

func (*MultiLoginMobileInput) GetCode

func (m *MultiLoginMobileInput) GetCode() string

func (*MultiLoginMobileInput) GetMobile

func (m *MultiLoginMobileInput) GetMobile() string

func (*MultiLoginMobileInput) ProtoMessage

func (*MultiLoginMobileInput) ProtoMessage()

func (*MultiLoginMobileInput) Reset

func (m *MultiLoginMobileInput) Reset()

func (*MultiLoginMobileInput) String

func (m *MultiLoginMobileInput) String() string

func (*MultiLoginMobileInput) XXX_DiscardUnknown

func (m *MultiLoginMobileInput) XXX_DiscardUnknown()

func (*MultiLoginMobileInput) XXX_Marshal

func (m *MultiLoginMobileInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiLoginMobileInput) XXX_Merge

func (m *MultiLoginMobileInput) XXX_Merge(src proto.Message)

func (*MultiLoginMobileInput) XXX_Size

func (m *MultiLoginMobileInput) XXX_Size() int

func (*MultiLoginMobileInput) XXX_Unmarshal

func (m *MultiLoginMobileInput) XXX_Unmarshal(b []byte) error

type SingleLoginAccountInput

type SingleLoginAccountInput struct {
	Channel              int32    `protobuf:"varint,3,opt,name=channel,proto3" json:"channel,omitempty"`
	AccountId            string   `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Pwd                  string   `protobuf:"bytes,5,opt,name=pwd,proto3" json:"pwd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SingleLoginAccountInput) Descriptor

func (*SingleLoginAccountInput) Descriptor() ([]byte, []int)

func (*SingleLoginAccountInput) GetAccountId

func (m *SingleLoginAccountInput) GetAccountId() string

func (*SingleLoginAccountInput) GetChannel

func (m *SingleLoginAccountInput) GetChannel() int32

func (*SingleLoginAccountInput) GetPwd

func (m *SingleLoginAccountInput) GetPwd() string

func (*SingleLoginAccountInput) ProtoMessage

func (*SingleLoginAccountInput) ProtoMessage()

func (*SingleLoginAccountInput) Reset

func (m *SingleLoginAccountInput) Reset()

func (*SingleLoginAccountInput) String

func (m *SingleLoginAccountInput) String() string

func (*SingleLoginAccountInput) XXX_DiscardUnknown

func (m *SingleLoginAccountInput) XXX_DiscardUnknown()

func (*SingleLoginAccountInput) XXX_Marshal

func (m *SingleLoginAccountInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleLoginAccountInput) XXX_Merge

func (m *SingleLoginAccountInput) XXX_Merge(src proto.Message)

func (*SingleLoginAccountInput) XXX_Size

func (m *SingleLoginAccountInput) XXX_Size() int

func (*SingleLoginAccountInput) XXX_Unmarshal

func (m *SingleLoginAccountInput) XXX_Unmarshal(b []byte) error

type SingleLoginGuestInput

type SingleLoginGuestInput struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	DeviceType           string   `protobuf:"bytes,2,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	Channel              int32    `protobuf:"varint,3,opt,name=channel,proto3" json:"channel,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

**********************************************************

func (*SingleLoginGuestInput) Descriptor

func (*SingleLoginGuestInput) Descriptor() ([]byte, []int)

func (*SingleLoginGuestInput) GetChannel

func (m *SingleLoginGuestInput) GetChannel() int32

func (*SingleLoginGuestInput) GetDeviceId

func (m *SingleLoginGuestInput) GetDeviceId() string

func (*SingleLoginGuestInput) GetDeviceType

func (m *SingleLoginGuestInput) GetDeviceType() string

func (*SingleLoginGuestInput) ProtoMessage

func (*SingleLoginGuestInput) ProtoMessage()

func (*SingleLoginGuestInput) Reset

func (m *SingleLoginGuestInput) Reset()

func (*SingleLoginGuestInput) String

func (m *SingleLoginGuestInput) String() string

func (*SingleLoginGuestInput) XXX_DiscardUnknown

func (m *SingleLoginGuestInput) XXX_DiscardUnknown()

func (*SingleLoginGuestInput) XXX_Marshal

func (m *SingleLoginGuestInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleLoginGuestInput) XXX_Merge

func (m *SingleLoginGuestInput) XXX_Merge(src proto.Message)

func (*SingleLoginGuestInput) XXX_Size

func (m *SingleLoginGuestInput) XXX_Size() int

func (*SingleLoginGuestInput) XXX_Unmarshal

func (m *SingleLoginGuestInput) XXX_Unmarshal(b []byte) error

type SingleLoginMobileInput

type SingleLoginMobileInput struct {
	Channel              int32    `protobuf:"varint,3,opt,name=channel,proto3" json:"channel,omitempty"`
	Mobile               string   `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Code                 string   `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SingleLoginMobileInput) Descriptor

func (*SingleLoginMobileInput) Descriptor() ([]byte, []int)

func (*SingleLoginMobileInput) GetChannel

func (m *SingleLoginMobileInput) GetChannel() int32

func (*SingleLoginMobileInput) GetCode

func (m *SingleLoginMobileInput) GetCode() string

func (*SingleLoginMobileInput) GetMobile

func (m *SingleLoginMobileInput) GetMobile() string

func (*SingleLoginMobileInput) ProtoMessage

func (*SingleLoginMobileInput) ProtoMessage()

func (*SingleLoginMobileInput) Reset

func (m *SingleLoginMobileInput) Reset()

func (*SingleLoginMobileInput) String

func (m *SingleLoginMobileInput) String() string

func (*SingleLoginMobileInput) XXX_DiscardUnknown

func (m *SingleLoginMobileInput) XXX_DiscardUnknown()

func (*SingleLoginMobileInput) XXX_Marshal

func (m *SingleLoginMobileInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleLoginMobileInput) XXX_Merge

func (m *SingleLoginMobileInput) XXX_Merge(src proto.Message)

func (*SingleLoginMobileInput) XXX_Size

func (m *SingleLoginMobileInput) XXX_Size() int

func (*SingleLoginMobileInput) XXX_Unmarshal

func (m *SingleLoginMobileInput) XXX_Unmarshal(b []byte) error

type SingleRegistAccountInput

type SingleRegistAccountInput struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	Account              string   `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Ver                  int32    `protobuf:"varint,4,opt,name=ver,proto3" json:"ver,omitempty"`
	Channel              int32    `protobuf:"varint,5,opt,name=channel,proto3" json:"channel,omitempty"`
	Type                 string   `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	Pid                  string   `protobuf:"bytes,7,opt,name=pid,proto3" json:"pid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

******************账号密码注册********************

func (*SingleRegistAccountInput) Descriptor

func (*SingleRegistAccountInput) Descriptor() ([]byte, []int)

func (*SingleRegistAccountInput) GetAccount

func (m *SingleRegistAccountInput) GetAccount() string

func (*SingleRegistAccountInput) GetChannel

func (m *SingleRegistAccountInput) GetChannel() int32

func (*SingleRegistAccountInput) GetDeviceId

func (m *SingleRegistAccountInput) GetDeviceId() string

func (*SingleRegistAccountInput) GetPassword

func (m *SingleRegistAccountInput) GetPassword() string

func (*SingleRegistAccountInput) GetPid

func (m *SingleRegistAccountInput) GetPid() string

func (*SingleRegistAccountInput) GetType

func (m *SingleRegistAccountInput) GetType() string

func (*SingleRegistAccountInput) GetVer

func (m *SingleRegistAccountInput) GetVer() int32

func (*SingleRegistAccountInput) ProtoMessage

func (*SingleRegistAccountInput) ProtoMessage()

func (*SingleRegistAccountInput) Reset

func (m *SingleRegistAccountInput) Reset()

func (*SingleRegistAccountInput) String

func (m *SingleRegistAccountInput) String() string

func (*SingleRegistAccountInput) XXX_DiscardUnknown

func (m *SingleRegistAccountInput) XXX_DiscardUnknown()

func (*SingleRegistAccountInput) XXX_Marshal

func (m *SingleRegistAccountInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleRegistAccountInput) XXX_Merge

func (m *SingleRegistAccountInput) XXX_Merge(src proto.Message)

func (*SingleRegistAccountInput) XXX_Size

func (m *SingleRegistAccountInput) XXX_Size() int

func (*SingleRegistAccountInput) XXX_Unmarshal

func (m *SingleRegistAccountInput) XXX_Unmarshal(b []byte) error

type SingleRegistMobileInput

type SingleRegistMobileInput struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	Mobile               string   `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Code                 string   `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	Ver                  int32    `protobuf:"varint,4,opt,name=ver,proto3" json:"ver,omitempty"`
	Channel              int32    `protobuf:"varint,5,opt,name=channel,proto3" json:"channel,omitempty"`
	Type                 string   `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	Pid                  string   `protobuf:"bytes,7,opt,name=pid,proto3" json:"pid,omitempty"`
	Password             string   `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"`
	Timediff             int32    `protobuf:"varint,9,opt,name=timediff,proto3" json:"timediff,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

******************手机号注册**********************************

func (*SingleRegistMobileInput) Descriptor

func (*SingleRegistMobileInput) Descriptor() ([]byte, []int)

func (*SingleRegistMobileInput) GetChannel

func (m *SingleRegistMobileInput) GetChannel() int32

func (*SingleRegistMobileInput) GetCode

func (m *SingleRegistMobileInput) GetCode() string

func (*SingleRegistMobileInput) GetDeviceId

func (m *SingleRegistMobileInput) GetDeviceId() string

func (*SingleRegistMobileInput) GetMobile

func (m *SingleRegistMobileInput) GetMobile() string

func (*SingleRegistMobileInput) GetPassword

func (m *SingleRegistMobileInput) GetPassword() string

func (*SingleRegistMobileInput) GetPid

func (m *SingleRegistMobileInput) GetPid() string

func (*SingleRegistMobileInput) GetTimediff

func (m *SingleRegistMobileInput) GetTimediff() int32

func (*SingleRegistMobileInput) GetType

func (m *SingleRegistMobileInput) GetType() string

func (*SingleRegistMobileInput) GetVer

func (m *SingleRegistMobileInput) GetVer() int32

func (*SingleRegistMobileInput) ProtoMessage

func (*SingleRegistMobileInput) ProtoMessage()

func (*SingleRegistMobileInput) Reset

func (m *SingleRegistMobileInput) Reset()

func (*SingleRegistMobileInput) String

func (m *SingleRegistMobileInput) String() string

func (*SingleRegistMobileInput) XXX_DiscardUnknown

func (m *SingleRegistMobileInput) XXX_DiscardUnknown()

func (*SingleRegistMobileInput) XXX_Marshal

func (m *SingleRegistMobileInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleRegistMobileInput) XXX_Merge

func (m *SingleRegistMobileInput) XXX_Merge(src proto.Message)

func (*SingleRegistMobileInput) XXX_Size

func (m *SingleRegistMobileInput) XXX_Size() int

func (*SingleRegistMobileInput) XXX_Unmarshal

func (m *SingleRegistMobileInput) XXX_Unmarshal(b []byte) error

type SingleRegistQuickInput

type SingleRegistQuickInput struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	Ver                  int32    `protobuf:"varint,2,opt,name=ver,proto3" json:"ver,omitempty"`
	Channel              int32    `protobuf:"varint,3,opt,name=channel,proto3" json:"channel,omitempty"`
	Type                 string   `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Pid                  string   `protobuf:"bytes,5,opt,name=pid,proto3" json:"pid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

******************快速注册********************

func (*SingleRegistQuickInput) Descriptor

func (*SingleRegistQuickInput) Descriptor() ([]byte, []int)

func (*SingleRegistQuickInput) GetChannel

func (m *SingleRegistQuickInput) GetChannel() int32

func (*SingleRegistQuickInput) GetDeviceId

func (m *SingleRegistQuickInput) GetDeviceId() string

func (*SingleRegistQuickInput) GetPid

func (m *SingleRegistQuickInput) GetPid() string

func (*SingleRegistQuickInput) GetType

func (m *SingleRegistQuickInput) GetType() string

func (*SingleRegistQuickInput) GetVer

func (m *SingleRegistQuickInput) GetVer() int32

func (*SingleRegistQuickInput) ProtoMessage

func (*SingleRegistQuickInput) ProtoMessage()

func (*SingleRegistQuickInput) Reset

func (m *SingleRegistQuickInput) Reset()

func (*SingleRegistQuickInput) String

func (m *SingleRegistQuickInput) String() string

func (*SingleRegistQuickInput) XXX_DiscardUnknown

func (m *SingleRegistQuickInput) XXX_DiscardUnknown()

func (*SingleRegistQuickInput) XXX_Marshal

func (m *SingleRegistQuickInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleRegistQuickInput) XXX_Merge

func (m *SingleRegistQuickInput) XXX_Merge(src proto.Message)

func (*SingleRegistQuickInput) XXX_Size

func (m *SingleRegistQuickInput) XXX_Size() int

func (*SingleRegistQuickInput) XXX_Unmarshal

func (m *SingleRegistQuickInput) XXX_Unmarshal(b []byte) error

type UserService

type UserService interface {
	MultiLoginMobile(ctx context.Context, in *MultiLoginMobileInput, opts ...client.CallOption) (*CommonOutput, error)
	SingleRegistQuick(ctx context.Context, in *SingleRegistQuickInput, opts ...client.CallOption) (*CommonOutput, error)
	SingleRegistAccount(ctx context.Context, in *SingleRegistAccountInput, opts ...client.CallOption) (*CommonOutput, error)
	SingleRegistMobile(ctx context.Context, in *SingleRegistMobileInput, opts ...client.CallOption) (*CommonOutput, error)
	SingleLoginGuest(ctx context.Context, in *SingleLoginGuestInput, opts ...client.CallOption) (*CommonOutput, error)
	SingleLoginMobile(ctx context.Context, in *SingleLoginMobileInput, opts ...client.CallOption) (*CommonOutput, error)
	SingleLoginAccount(ctx context.Context, in *SingleLoginAccountInput, opts ...client.CallOption) (*CommonOutput, error)
}

func NewUserService

func NewUserService(name string, c client.Client) UserService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL