feat: device info and bind
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 31s
CI / admin (push) Successful in 24s
CI / bff (push) Successful in 31s
CI / chore (push) Successful in 27s
CI / equipment (push) Successful in 21s
CI / express (push) Successful in 23s
CI / factory (push) Successful in 21s
CI / message (push) Successful in 21s
CI / order (push) Successful in 22s
CI / payment (push) Successful in 20s
CI / percutaneous (push) Successful in 20s
CI / product (push) Successful in 20s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / support (push) Successful in 20s
CI / task (push) Successful in 19s
CI / user (push) Successful in 21s
CI / wecom (push) Successful in 22s

This commit is contained in:
zzw
2026-10-16 15:36:17 +08:00
parent a65b6d2803
commit 46d3f672bf
42 changed files with 2142 additions and 197 deletions
+262 -19
View File
@@ -638,6 +638,218 @@ func (x *UserAuthReq) GetValidityTime() string {
return ""
}
type UserAuthListReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UserAuthListReq) Reset() {
*x = UserAuthListReq{}
mi := &file_analysis_analysis_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserAuthListReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserAuthListReq) ProtoMessage() {}
func (x *UserAuthListReq) ProtoReflect() protoreflect.Message {
mi := &file_analysis_analysis_proto_msgTypes[12]
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 UserAuthListReq.ProtoReflect.Descriptor instead.
func (*UserAuthListReq) Descriptor() ([]byte, []int) {
return file_analysis_analysis_proto_rawDescGZIP(), []int{12}
}
type UserAuthDeleteReq 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 *UserAuthDeleteReq) Reset() {
*x = UserAuthDeleteReq{}
mi := &file_analysis_analysis_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserAuthDeleteReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserAuthDeleteReq) ProtoMessage() {}
func (x *UserAuthDeleteReq) ProtoReflect() protoreflect.Message {
mi := &file_analysis_analysis_proto_msgTypes[13]
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 UserAuthDeleteReq.ProtoReflect.Descriptor instead.
func (*UserAuthDeleteReq) Descriptor() ([]byte, []int) {
return file_analysis_analysis_proto_rawDescGZIP(), []int{13}
}
func (x *UserAuthDeleteReq) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type UserAuthUpdateReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
ValidityTime string `protobuf:"bytes,2,opt,name=validity_time,json=validityTime,proto3" json:"validity_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UserAuthUpdateReq) Reset() {
*x = UserAuthUpdateReq{}
mi := &file_analysis_analysis_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserAuthUpdateReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserAuthUpdateReq) ProtoMessage() {}
func (x *UserAuthUpdateReq) ProtoReflect() protoreflect.Message {
mi := &file_analysis_analysis_proto_msgTypes[14]
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 UserAuthUpdateReq.ProtoReflect.Descriptor instead.
func (*UserAuthUpdateReq) Descriptor() ([]byte, []int) {
return file_analysis_analysis_proto_rawDescGZIP(), []int{14}
}
func (x *UserAuthUpdateReq) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *UserAuthUpdateReq) GetValidityTime() string {
if x != nil {
return x.ValidityTime
}
return ""
}
type DeviceBindReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
DeviceNo string `protobuf:"bytes,1,opt,name=device_no,json=deviceNo,proto3" json:"device_no,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeviceBindReq) Reset() {
*x = DeviceBindReq{}
mi := &file_analysis_analysis_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeviceBindReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceBindReq) ProtoMessage() {}
func (x *DeviceBindReq) ProtoReflect() protoreflect.Message {
mi := &file_analysis_analysis_proto_msgTypes[15]
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 DeviceBindReq.ProtoReflect.Descriptor instead.
func (*DeviceBindReq) Descriptor() ([]byte, []int) {
return file_analysis_analysis_proto_rawDescGZIP(), []int{15}
}
func (x *DeviceBindReq) GetDeviceNo() string {
if x != nil {
return x.DeviceNo
}
return ""
}
type DeviceInfoReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeviceInfoReq) Reset() {
*x = DeviceInfoReq{}
mi := &file_analysis_analysis_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeviceInfoReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceInfoReq) ProtoMessage() {}
func (x *DeviceInfoReq) ProtoReflect() protoreflect.Message {
mi := &file_analysis_analysis_proto_msgTypes[16]
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 DeviceInfoReq.ProtoReflect.Descriptor instead.
func (*DeviceInfoReq) Descriptor() ([]byte, []int) {
return file_analysis_analysis_proto_rawDescGZIP(), []int{16}
}
var File_analysis_analysis_proto protoreflect.FileDescriptor
const file_analysis_analysis_proto_rawDesc = "" +
@@ -677,18 +889,34 @@ const file_analysis_analysis_proto_rawDesc = "" +
"\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" +
"\rvalidity_time\x18\x03 \x01(\tR\fvalidityTime\"\x11\n" +
"\x0fUserAuthListReq\"#\n" +
"\x11UserAuthDeleteReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"H\n" +
"\x11UserAuthUpdateReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12#\n" +
"\rvalidity_time\x18\x02 \x01(\tR\fvalidityTime\",\n" +
"\rDeviceBindReq\x12\x1b\n" +
"\tdevice_no\x18\x01 \x01(\tR\bdeviceNo\"\x0f\n" +
"\rDeviceInfoReq2\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" +
"\x06Switch\x12\x13.analysis.SwitchReq\x1a\x12.analysis.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/v2/analysis/switch2\x94\b\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" +
"\bUserAuth\x12\x15.analysis.UserAuthReq\x1a\x12.analysis.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v2/analysis/user/auth\x12i\n" +
"\fUserAuthList\x12\x19.analysis.UserAuthListReq\x1a\x12.analysis.Response\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v2/analysis/user/auth/list\x12o\n" +
"\x0eUserAuthDelete\x12\x1b.analysis.UserAuthDeleteReq\x1a\x12.analysis.Response\",\x82\xd3\xe4\x93\x02&:\x01*\"!/api/v2/analysis/user/auth/delete\x12o\n" +
"\x0eUserAuthUpdate\x12\x1b.analysis.UserAuthUpdateReq\x1a\x12.analysis.Response\",\x82\xd3\xe4\x93\x02&:\x01*\"!/api/v2/analysis/user/auth/update\x12b\n" +
"\n" +
"DeviceBind\x12\x17.analysis.DeviceBindReq\x1a\x12.analysis.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v2/analysis/device/bind\x12b\n" +
"\n" +
"DeviceInfo\x12\x17.analysis.DeviceInfoReq\x1a\x12.analysis.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v2/analysis/device/info2\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" +
@@ -706,7 +934,7 @@ func file_analysis_analysis_proto_rawDescGZIP() []byte {
return file_analysis_analysis_proto_rawDescData
}
var file_analysis_analysis_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_analysis_analysis_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
var file_analysis_analysis_proto_goTypes = []any{
(*Response)(nil), // 0: analysis.Response
(*InternalCreateUserReq)(nil), // 1: analysis.InternalCreateUserReq
@@ -720,6 +948,11 @@ var file_analysis_analysis_proto_goTypes = []any{
(*StoreAuthReq)(nil), // 9: analysis.StoreAuthReq
(*StoreAuthQrcodeReq)(nil), // 10: analysis.StoreAuthQrcodeReq
(*UserAuthReq)(nil), // 11: analysis.UserAuthReq
(*UserAuthListReq)(nil), // 12: analysis.UserAuthListReq
(*UserAuthDeleteReq)(nil), // 13: analysis.UserAuthDeleteReq
(*UserAuthUpdateReq)(nil), // 14: analysis.UserAuthUpdateReq
(*DeviceBindReq)(nil), // 15: analysis.DeviceBindReq
(*DeviceInfoReq)(nil), // 16: analysis.DeviceInfoReq
}
var file_analysis_analysis_proto_depIdxs = []int32{
1, // 0: analysis.Analysis.InternalCreateUser:input_type -> analysis.InternalCreateUserReq
@@ -730,20 +963,30 @@ var file_analysis_analysis_proto_depIdxs = []int32{
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
12, // 8: analysis.AnalysisUser.UserAuthList:input_type -> analysis.UserAuthListReq
13, // 9: analysis.AnalysisUser.UserAuthDelete:input_type -> analysis.UserAuthDeleteReq
14, // 10: analysis.AnalysisUser.UserAuthUpdate:input_type -> analysis.UserAuthUpdateReq
15, // 11: analysis.AnalysisUser.DeviceBind:input_type -> analysis.DeviceBindReq
16, // 12: analysis.AnalysisUser.DeviceInfo:input_type -> analysis.DeviceInfoReq
9, // 13: analysis.AnalysisStore.StoreAuth:input_type -> analysis.StoreAuthReq
10, // 14: analysis.AnalysisStore.StoreAuthQrcode:input_type -> analysis.StoreAuthQrcodeReq
2, // 15: analysis.Analysis.InternalCreateUser:output_type -> analysis.InternalCreateUserData
0, // 16: analysis.Analysis.AgreementInfo:output_type -> analysis.Response
0, // 17: analysis.Analysis.Switch:output_type -> analysis.Response
0, // 18: analysis.AnalysisUser.UserRegister:output_type -> analysis.Response
0, // 19: analysis.AnalysisUser.FaceBind:output_type -> analysis.Response
0, // 20: analysis.AnalysisUser.UserImprove:output_type -> analysis.Response
0, // 21: analysis.AnalysisUser.UserDelete:output_type -> analysis.Response
0, // 22: analysis.AnalysisUser.UserAuth:output_type -> analysis.Response
0, // 23: analysis.AnalysisUser.UserAuthList:output_type -> analysis.Response
0, // 24: analysis.AnalysisUser.UserAuthDelete:output_type -> analysis.Response
0, // 25: analysis.AnalysisUser.UserAuthUpdate:output_type -> analysis.Response
0, // 26: analysis.AnalysisUser.DeviceBind:output_type -> analysis.Response
0, // 27: analysis.AnalysisUser.DeviceInfo:output_type -> analysis.Response
0, // 28: analysis.AnalysisStore.StoreAuth:output_type -> analysis.Response
0, // 29: analysis.AnalysisStore.StoreAuthQrcode:output_type -> analysis.Response
15, // [15:30] is the sub-list for method output_type
0, // [0:15] 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
@@ -760,7 +1003,7 @@ 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: 12,
NumMessages: 17,
NumExtensions: 0,
NumServices: 4,
},