feat: analysis user auth and ws
This commit is contained in:
+647
-56
@@ -22,42 +22,6 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type GenerateQrcodeRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GenerateQrcodeRequest) Reset() {
|
||||
*x = GenerateQrcodeRequest{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GenerateQrcodeRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GenerateQrcodeRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GenerateQrcodeRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GenerateQrcodeRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GenerateQrcodeRequest) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
@@ -69,7 +33,7 @@ type Response struct {
|
||||
|
||||
func (x *Response) Reset() {
|
||||
*x = Response{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[1]
|
||||
mi := &file_analysis_analysis_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -81,7 +45,7 @@ func (x *Response) String() string {
|
||||
func (*Response) ProtoMessage() {}
|
||||
|
||||
func (x *Response) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[1]
|
||||
mi := &file_analysis_analysis_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -94,7 +58,7 @@ func (x *Response) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
|
||||
func (*Response) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{1}
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Response) GetCode() int32 {
|
||||
@@ -118,18 +82,617 @@ func (x *Response) GetData() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type InternalCreateUserReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *InternalCreateUserReq) Reset() {
|
||||
*x = InternalCreateUserReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *InternalCreateUserReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*InternalCreateUserReq) ProtoMessage() {}
|
||||
|
||||
func (x *InternalCreateUserReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use InternalCreateUserReq.ProtoReflect.Descriptor instead.
|
||||
func (*InternalCreateUserReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type InternalCreateUserData struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *InternalCreateUserData) Reset() {
|
||||
*x = InternalCreateUserData{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *InternalCreateUserData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*InternalCreateUserData) ProtoMessage() {}
|
||||
|
||||
func (x *InternalCreateUserData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use InternalCreateUserData.ProtoReflect.Descriptor instead.
|
||||
func (*InternalCreateUserData) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *InternalCreateUserData) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserImproveReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||||
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
||||
Birthday string `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"`
|
||||
Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
||||
Gender int32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender,omitempty"`
|
||||
Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
|
||||
District string `protobuf:"bytes,7,opt,name=district,proto3" json:"district,omitempty"`
|
||||
Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) Reset() {
|
||||
*x = UserImproveReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserImproveReq) ProtoMessage() {}
|
||||
|
||||
func (x *UserImproveReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UserImproveReq.ProtoReflect.Descriptor instead.
|
||||
func (*UserImproveReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetAvatar() string {
|
||||
if x != nil {
|
||||
return x.Avatar
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetNickname() string {
|
||||
if x != nil {
|
||||
return x.Nickname
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetBirthday() string {
|
||||
if x != nil {
|
||||
return x.Birthday
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetMobile() string {
|
||||
if x != nil {
|
||||
return x.Mobile
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetGender() int32 {
|
||||
if x != nil {
|
||||
return x.Gender
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetDistrict() string {
|
||||
if x != nil {
|
||||
return x.District
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserImproveReq) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UserRegisterReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UserRegisterReq) Reset() {
|
||||
*x = UserRegisterReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UserRegisterReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserRegisterReq) ProtoMessage() {}
|
||||
|
||||
func (x *UserRegisterReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead.
|
||||
func (*UserRegisterReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *UserRegisterReq) GetCode() string {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type FaceBindReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
FacePath string `protobuf:"bytes,1,opt,name=face_path,json=facePath,proto3" json:"face_path,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FaceBindReq) Reset() {
|
||||
*x = FaceBindReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FaceBindReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FaceBindReq) ProtoMessage() {}
|
||||
|
||||
func (x *FaceBindReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FaceBindReq.ProtoReflect.Descriptor instead.
|
||||
func (*FaceBindReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *FaceBindReq) GetFacePath() string {
|
||||
if x != nil {
|
||||
return x.FacePath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AgreementInfoReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AgreementInfoReq) Reset() {
|
||||
*x = AgreementInfoReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AgreementInfoReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AgreementInfoReq) ProtoMessage() {}
|
||||
|
||||
func (x *AgreementInfoReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AgreementInfoReq.ProtoReflect.Descriptor instead.
|
||||
func (*AgreementInfoReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *AgreementInfoReq) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserDeleteReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UserDeleteReq) Reset() {
|
||||
*x = UserDeleteReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UserDeleteReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserDeleteReq) ProtoMessage() {}
|
||||
|
||||
func (x *UserDeleteReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UserDeleteReq.ProtoReflect.Descriptor instead.
|
||||
func (*UserDeleteReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *UserDeleteReq) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type SwitchReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SwitchReq) Reset() {
|
||||
*x = SwitchReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SwitchReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SwitchReq) ProtoMessage() {}
|
||||
|
||||
func (x *SwitchReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SwitchReq.ProtoReflect.Descriptor instead.
|
||||
func (*SwitchReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *SwitchReq) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type StoreAuthReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
ValidityTime string `protobuf:"bytes,3,opt,name=validity_time,json=validityTime,proto3" json:"validity_time,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *StoreAuthReq) Reset() {
|
||||
*x = StoreAuthReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StoreAuthReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StoreAuthReq) ProtoMessage() {}
|
||||
|
||||
func (x *StoreAuthReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StoreAuthReq.ProtoReflect.Descriptor instead.
|
||||
func (*StoreAuthReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *StoreAuthReq) GetUsername() string {
|
||||
if x != nil {
|
||||
return x.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StoreAuthReq) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StoreAuthReq) GetValidityTime() string {
|
||||
if x != nil {
|
||||
return x.ValidityTime
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type StoreAuthQrcodeReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *StoreAuthQrcodeReq) Reset() {
|
||||
*x = StoreAuthQrcodeReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StoreAuthQrcodeReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StoreAuthQrcodeReq) ProtoMessage() {}
|
||||
|
||||
func (x *StoreAuthQrcodeReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StoreAuthQrcodeReq.ProtoReflect.Descriptor instead.
|
||||
func (*StoreAuthQrcodeReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
type UserAuthReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
StoreId int64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"`
|
||||
ValidityTime string `protobuf:"bytes,3,opt,name=validity_time,json=validityTime,proto3" json:"validity_time,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UserAuthReq) Reset() {
|
||||
*x = UserAuthReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UserAuthReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserAuthReq) ProtoMessage() {}
|
||||
|
||||
func (x *UserAuthReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UserAuthReq.ProtoReflect.Descriptor instead.
|
||||
func (*UserAuthReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *UserAuthReq) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserAuthReq) GetStoreId() int64 {
|
||||
if x != nil {
|
||||
return x.StoreId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserAuthReq) GetValidityTime() string {
|
||||
if x != nil {
|
||||
return x.ValidityTime
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_analysis_analysis_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_analysis_analysis_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x17analysis/analysis.proto\x12\banalysis\x1a\x1cgoogle/api/annotations.proto\"\x17\n" +
|
||||
"\x15GenerateQrcodeRequest\"D\n" +
|
||||
"\x17analysis/analysis.proto\x12\banalysis\x1a\x1cgoogle/api/annotations.proto\"D\n" +
|
||||
"\bResponse\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
||||
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data2\x82\x01\n" +
|
||||
"\fAnalysisAuth\x12r\n" +
|
||||
"\x0eGenerateQrcode\x12\x1f.analysis.GenerateQrcodeRequest\x1a\x12.analysis.Response\"+\x82\xd3\xe4\x93\x02%:\x01*\" /api/v2/analysis/qrcode/generateB\x1cZ\x1alone-services/rpc/analysisb\x06proto3"
|
||||
"\x04data\x18\x03 \x01(\tR\x04data\"\x17\n" +
|
||||
"\x15InternalCreateUserReq\"(\n" +
|
||||
"\x16InternalCreateUserData\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"\xe2\x01\n" +
|
||||
"\x0eUserImproveReq\x12\x16\n" +
|
||||
"\x06avatar\x18\x01 \x01(\tR\x06avatar\x12\x1a\n" +
|
||||
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x1a\n" +
|
||||
"\bbirthday\x18\x03 \x01(\tR\bbirthday\x12\x16\n" +
|
||||
"\x06mobile\x18\x04 \x01(\tR\x06mobile\x12\x16\n" +
|
||||
"\x06gender\x18\x05 \x01(\x05R\x06gender\x12\x1a\n" +
|
||||
"\bpassword\x18\x06 \x01(\tR\bpassword\x12\x1a\n" +
|
||||
"\bdistrict\x18\a \x01(\tR\bdistrict\x12\x18\n" +
|
||||
"\aaddress\x18\b \x01(\tR\aaddress\"%\n" +
|
||||
"\x0fUserRegisterReq\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\tR\x04code\"*\n" +
|
||||
"\vFaceBindReq\x12\x1b\n" +
|
||||
"\tface_path\x18\x01 \x01(\tR\bfacePath\"&\n" +
|
||||
"\x10AgreementInfoReq\x12\x12\n" +
|
||||
"\x04type\x18\x01 \x01(\x05R\x04type\"\x1f\n" +
|
||||
"\rUserDeleteReq\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"\x1f\n" +
|
||||
"\tSwitchReq\x12\x12\n" +
|
||||
"\x04type\x18\x01 \x01(\x05R\x04type\"k\n" +
|
||||
"\fStoreAuthReq\x12\x1a\n" +
|
||||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12#\n" +
|
||||
"\rvalidity_time\x18\x03 \x01(\tR\fvalidityTime\"\x14\n" +
|
||||
"\x12StoreAuthQrcodeReq\"a\n" +
|
||||
"\vUserAuthReq\x12\x12\n" +
|
||||
"\x04type\x18\x01 \x01(\x05R\x04type\x12\x19\n" +
|
||||
"\bstore_id\x18\x02 \x01(\x03R\astoreId\x12#\n" +
|
||||
"\rvalidity_time\x18\x03 \x01(\tR\fvalidityTime2\xa7\x02\n" +
|
||||
"\bAnalysis\x12W\n" +
|
||||
"\x12InternalCreateUser\x12\x1f.analysis.InternalCreateUserReq\x1a .analysis.InternalCreateUserData\x12k\n" +
|
||||
"\rAgreementInfo\x12\x1a.analysis.AgreementInfoReq\x1a\x12.analysis.Response\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v2/analysis/agreement/info\x12U\n" +
|
||||
"\x06Switch\x12\x13.analysis.SwitchReq\x1a\x12.analysis.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/v2/analysis/switch2\xff\x03\n" +
|
||||
"\fAnalysisUser\x12h\n" +
|
||||
"\fUserRegister\x12\x19.analysis.UserRegisterReq\x1a\x12.analysis.Response\")\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/v2/analysis/user/register\x12\\\n" +
|
||||
"\bFaceBind\x12\x15.analysis.FaceBindReq\x1a\x12.analysis.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v2/analysis/face/bind\x12e\n" +
|
||||
"\vUserImprove\x12\x18.analysis.UserImproveReq\x1a\x12.analysis.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/v2/analysis/user/improve\x12b\n" +
|
||||
"\n" +
|
||||
"UserDelete\x12\x17.analysis.UserDeleteReq\x1a\x12.analysis.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v2/analysis/user/delete\x12\\\n" +
|
||||
"\bUserAuth\x12\x15.analysis.UserAuthReq\x1a\x12.analysis.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v2/analysis/user/auth2\xe4\x01\n" +
|
||||
"\rAnalysisStore\x12_\n" +
|
||||
"\tStoreAuth\x12\x16.analysis.StoreAuthReq\x1a\x12.analysis.Response\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v2/analysis/store/auth\x12r\n" +
|
||||
"\x0fStoreAuthQrcode\x12\x1c.analysis.StoreAuthQrcodeReq\x1a\x12.analysis.Response\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/v2/analysis/store/auth/qrcode2\x10\n" +
|
||||
"\x0eAnalysisDeviceB\x1cZ\x1alone-services/rpc/analysisb\x06proto3"
|
||||
|
||||
var (
|
||||
file_analysis_analysis_proto_rawDescOnce sync.Once
|
||||
@@ -143,19 +706,47 @@ func file_analysis_analysis_proto_rawDescGZIP() []byte {
|
||||
return file_analysis_analysis_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_analysis_analysis_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_analysis_analysis_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||
var file_analysis_analysis_proto_goTypes = []any{
|
||||
(*GenerateQrcodeRequest)(nil), // 0: analysis.GenerateQrcodeRequest
|
||||
(*Response)(nil), // 1: analysis.Response
|
||||
(*Response)(nil), // 0: analysis.Response
|
||||
(*InternalCreateUserReq)(nil), // 1: analysis.InternalCreateUserReq
|
||||
(*InternalCreateUserData)(nil), // 2: analysis.InternalCreateUserData
|
||||
(*UserImproveReq)(nil), // 3: analysis.UserImproveReq
|
||||
(*UserRegisterReq)(nil), // 4: analysis.UserRegisterReq
|
||||
(*FaceBindReq)(nil), // 5: analysis.FaceBindReq
|
||||
(*AgreementInfoReq)(nil), // 6: analysis.AgreementInfoReq
|
||||
(*UserDeleteReq)(nil), // 7: analysis.UserDeleteReq
|
||||
(*SwitchReq)(nil), // 8: analysis.SwitchReq
|
||||
(*StoreAuthReq)(nil), // 9: analysis.StoreAuthReq
|
||||
(*StoreAuthQrcodeReq)(nil), // 10: analysis.StoreAuthQrcodeReq
|
||||
(*UserAuthReq)(nil), // 11: analysis.UserAuthReq
|
||||
}
|
||||
var file_analysis_analysis_proto_depIdxs = []int32{
|
||||
0, // 0: analysis.AnalysisAuth.GenerateQrcode:input_type -> analysis.GenerateQrcodeRequest
|
||||
1, // 1: analysis.AnalysisAuth.GenerateQrcode:output_type -> analysis.Response
|
||||
1, // [1:2] is the sub-list for method output_type
|
||||
0, // [0:1] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
1, // 0: analysis.Analysis.InternalCreateUser:input_type -> analysis.InternalCreateUserReq
|
||||
6, // 1: analysis.Analysis.AgreementInfo:input_type -> analysis.AgreementInfoReq
|
||||
8, // 2: analysis.Analysis.Switch:input_type -> analysis.SwitchReq
|
||||
4, // 3: analysis.AnalysisUser.UserRegister:input_type -> analysis.UserRegisterReq
|
||||
5, // 4: analysis.AnalysisUser.FaceBind:input_type -> analysis.FaceBindReq
|
||||
3, // 5: analysis.AnalysisUser.UserImprove:input_type -> analysis.UserImproveReq
|
||||
7, // 6: analysis.AnalysisUser.UserDelete:input_type -> analysis.UserDeleteReq
|
||||
11, // 7: analysis.AnalysisUser.UserAuth:input_type -> analysis.UserAuthReq
|
||||
9, // 8: analysis.AnalysisStore.StoreAuth:input_type -> analysis.StoreAuthReq
|
||||
10, // 9: analysis.AnalysisStore.StoreAuthQrcode:input_type -> analysis.StoreAuthQrcodeReq
|
||||
2, // 10: analysis.Analysis.InternalCreateUser:output_type -> analysis.InternalCreateUserData
|
||||
0, // 11: analysis.Analysis.AgreementInfo:output_type -> analysis.Response
|
||||
0, // 12: analysis.Analysis.Switch:output_type -> analysis.Response
|
||||
0, // 13: analysis.AnalysisUser.UserRegister:output_type -> analysis.Response
|
||||
0, // 14: analysis.AnalysisUser.FaceBind:output_type -> analysis.Response
|
||||
0, // 15: analysis.AnalysisUser.UserImprove:output_type -> analysis.Response
|
||||
0, // 16: analysis.AnalysisUser.UserDelete:output_type -> analysis.Response
|
||||
0, // 17: analysis.AnalysisUser.UserAuth:output_type -> analysis.Response
|
||||
0, // 18: analysis.AnalysisStore.StoreAuth:output_type -> analysis.Response
|
||||
0, // 19: analysis.AnalysisStore.StoreAuthQrcode:output_type -> analysis.Response
|
||||
10, // [10:20] is the sub-list for method output_type
|
||||
0, // [0:10] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_analysis_analysis_proto_init() }
|
||||
@@ -169,9 +760,9 @@ func file_analysis_analysis_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_analysis_analysis_proto_rawDesc), len(file_analysis_analysis_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumMessages: 12,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
NumServices: 4,
|
||||
},
|
||||
GoTypes: file_analysis_analysis_proto_goTypes,
|
||||
DependencyIndexes: file_analysis_analysis_proto_depIdxs,
|
||||
|
||||
Reference in New Issue
Block a user