feat: analysis admin
This commit is contained in:
+314
-56
@@ -2214,6 +2214,231 @@ func (x *DeviceUpdateReq) GetDeviceName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type AdminUserListReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
|
||||
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminUserListReq) Reset() {
|
||||
*x = AdminUserListReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[44]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminUserListReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminUserListReq) ProtoMessage() {}
|
||||
|
||||
func (x *AdminUserListReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[44]
|
||||
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 AdminUserListReq.ProtoReflect.Descriptor instead.
|
||||
func (*AdminUserListReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{44}
|
||||
}
|
||||
|
||||
func (x *AdminUserListReq) GetKeyword() string {
|
||||
if x != nil {
|
||||
return x.Keyword
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminUserListReq) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminUserListReq) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type AdminUserArchiveReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminUserArchiveReq) Reset() {
|
||||
*x = AdminUserArchiveReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[45]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminUserArchiveReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminUserArchiveReq) ProtoMessage() {}
|
||||
|
||||
func (x *AdminUserArchiveReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[45]
|
||||
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 AdminUserArchiveReq.ProtoReflect.Descriptor instead.
|
||||
func (*AdminUserArchiveReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{45}
|
||||
}
|
||||
|
||||
func (x *AdminUserArchiveReq) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminUserArchiveReq) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminUserArchiveReq) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type AdminUserDetailReq 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 *AdminUserDetailReq) Reset() {
|
||||
*x = AdminUserDetailReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[46]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminUserDetailReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminUserDetailReq) ProtoMessage() {}
|
||||
|
||||
func (x *AdminUserDetailReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[46]
|
||||
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 AdminUserDetailReq.ProtoReflect.Descriptor instead.
|
||||
func (*AdminUserDetailReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{46}
|
||||
}
|
||||
|
||||
func (x *AdminUserDetailReq) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// FaceLoginReq 设备人脸登录。gRPC/网关不走 multipart,传 file(图片字节) 或共享盘 file_path 其一。
|
||||
type FaceLoginReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
||||
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
||||
ClientCode string `protobuf:"bytes,3,opt,name=client_code,json=clientCode,proto3" json:"client_code,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FaceLoginReq) Reset() {
|
||||
*x = FaceLoginReq{}
|
||||
mi := &file_analysis_analysis_proto_msgTypes[47]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FaceLoginReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FaceLoginReq) ProtoMessage() {}
|
||||
|
||||
func (x *FaceLoginReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_analysis_analysis_proto_msgTypes[47]
|
||||
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 FaceLoginReq.ProtoReflect.Descriptor instead.
|
||||
func (*FaceLoginReq) Descriptor() ([]byte, []int) {
|
||||
return file_analysis_analysis_proto_rawDescGZIP(), []int{47}
|
||||
}
|
||||
|
||||
func (x *FaceLoginReq) GetFile() []byte {
|
||||
if x != nil {
|
||||
return x.File
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *FaceLoginReq) GetFilePath() string {
|
||||
if x != nil {
|
||||
return x.FilePath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *FaceLoginReq) GetClientCode() string {
|
||||
if x != nil {
|
||||
return x.ClientCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_analysis_analysis_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_analysis_analysis_proto_rawDesc = "" +
|
||||
@@ -2345,7 +2570,22 @@ const file_analysis_analysis_proto_rawDesc = "" +
|
||||
"\x0fDeviceUpdateReq\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1f\n" +
|
||||
"\vdevice_name\x18\x02 \x01(\tR\n" +
|
||||
"deviceName2\xe6\x11\n" +
|
||||
"deviceName\"T\n" +
|
||||
"\x10AdminUserListReq\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x12\n" +
|
||||
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x03 \x01(\x05R\x04size\"V\n" +
|
||||
"\x13AdminUserArchiveReq\x12\x17\n" +
|
||||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x12\n" +
|
||||
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x03 \x01(\x05R\x04size\"$\n" +
|
||||
"\x12AdminUserDetailReq\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"`\n" +
|
||||
"\fFaceLoginReq\x12\x12\n" +
|
||||
"\x04file\x18\x01 \x01(\fR\x04file\x12\x1b\n" +
|
||||
"\tfile_path\x18\x02 \x01(\tR\bfilePath\x12\x1f\n" +
|
||||
"\vclient_code\x18\x03 \x01(\tR\n" +
|
||||
"clientCode2\xe6\x11\n" +
|
||||
"\bAnalysis\x12W\n" +
|
||||
"\x12InternalCreateUser\x12\x1f.analysis.InternalCreateUserReq\x1a .analysis.InternalCreateUserData\x12`\n" +
|
||||
"\x15InternalSetRegistered\x12\".analysis.InternalSetRegisteredReq\x1a#.analysis.InternalSetRegisteredData\x12k\n" +
|
||||
@@ -2397,13 +2637,19 @@ const file_analysis_analysis_proto_rawDesc = "" +
|
||||
"\tStoreInfo\x12\x16.analysis.StoreInfoReq\x1a\x12.analysis.Response\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v2/analysis/store/info\x12g\n" +
|
||||
"\rStoreUserList\x12\x1a.analysis.StoreUserListReq\x1a\x12.analysis.Response\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v2/analysis/store/list\x12r\n" +
|
||||
"\x0fStoreUserUpdate\x12\x1c.analysis.StoreUserUpdateReq\x1a\x12.analysis.Response\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/v2/analysis/store/user/update\x12l\n" +
|
||||
"\rStoreUserInfo\x12\x1a.analysis.StoreUserInfoReq\x1a\x12.analysis.Response\"+\x82\xd3\xe4\x93\x02%:\x01*\" /api/v2/analysis/store/user/info2\xa5\x03\n" +
|
||||
"\x0eAnalysisDevice\x12^\n" +
|
||||
"\rStoreUserInfo\x12\x1a.analysis.StoreUserInfoReq\x1a\x12.analysis.Response\"+\x82\xd3\xe4\x93\x02%:\x01*\" /api/v2/analysis/store/user/info2\x80\x04\n" +
|
||||
"\x0eAnalysisDevice\x12Y\n" +
|
||||
"\tFaceLogin\x12\x16.analysis.FaceLoginReq\x1a\x12.analysis.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/device/v1/login/face\x12^\n" +
|
||||
"\x06Policy\x12\x19.analysis.DevicePolicyReq\x1a\x12.analysis.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/device/v1/analysis/policy\x12a\n" +
|
||||
"\aDisplay\x12\x1a.analysis.DeviceDisplayReq\x1a\x12.analysis.Response\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/device/v1/analysis/display\x12l\n" +
|
||||
"\vOssCallback\x12\x18.analysis.OssCallbackReq\x1a\x19.analysis.OssCallbackResp\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/v2/analysis/oss/callback\x12b\n" +
|
||||
"\n" +
|
||||
"PyCallback\x12\x17.analysis.PyCallbackReq\x1a\x12.analysis.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v2/analysis/py/callbackB\x1cZ\x1alone-services/rpc/analysisb\x06proto3"
|
||||
"PyCallback\x12\x17.analysis.PyCallbackReq\x1a\x12.analysis.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v2/analysis/py/callback2\xcd\x02\n" +
|
||||
"\rAnalysisAdmin\x12c\n" +
|
||||
"\bUserList\x12\x1a.analysis.AdminUserListReq\x1a\x12.analysis.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/admin/v2/analysis/user/list\x12l\n" +
|
||||
"\vUserArchive\x12\x1d.analysis.AdminUserArchiveReq\x1a\x12.analysis.Response\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/admin/v2/analysis/user/archive\x12i\n" +
|
||||
"\n" +
|
||||
"UserDetail\x12\x1c.analysis.AdminUserDetailReq\x1a\x12.analysis.Response\")\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/admin/v2/analysis/user/detailB\x1cZ\x1alone-services/rpc/analysisb\x06proto3"
|
||||
|
||||
var (
|
||||
file_analysis_analysis_proto_rawDescOnce sync.Once
|
||||
@@ -2417,7 +2663,7 @@ func file_analysis_analysis_proto_rawDescGZIP() []byte {
|
||||
return file_analysis_analysis_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_analysis_analysis_proto_msgTypes = make([]protoimpl.MessageInfo, 44)
|
||||
var file_analysis_analysis_proto_msgTypes = make([]protoimpl.MessageInfo, 48)
|
||||
var file_analysis_analysis_proto_goTypes = []any{
|
||||
(*Response)(nil), // 0: analysis.Response
|
||||
(*InternalCreateUserReq)(nil), // 1: analysis.InternalCreateUserReq
|
||||
@@ -2463,6 +2709,10 @@ var file_analysis_analysis_proto_goTypes = []any{
|
||||
(*ImagesDateReq)(nil), // 41: analysis.ImagesDateReq
|
||||
(*ImagesListReq)(nil), // 42: analysis.ImagesListReq
|
||||
(*DeviceUpdateReq)(nil), // 43: analysis.DeviceUpdateReq
|
||||
(*AdminUserListReq)(nil), // 44: analysis.AdminUserListReq
|
||||
(*AdminUserArchiveReq)(nil), // 45: analysis.AdminUserArchiveReq
|
||||
(*AdminUserDetailReq)(nil), // 46: analysis.AdminUserDetailReq
|
||||
(*FaceLoginReq)(nil), // 47: analysis.FaceLoginReq
|
||||
}
|
||||
var file_analysis_analysis_proto_depIdxs = []int32{
|
||||
1, // 0: analysis.Analysis.InternalCreateUser:input_type -> analysis.InternalCreateUserReq
|
||||
@@ -2504,55 +2754,63 @@ var file_analysis_analysis_proto_depIdxs = []int32{
|
||||
15, // 36: analysis.AnalysisStore.StoreUserList:input_type -> analysis.StoreUserListReq
|
||||
16, // 37: analysis.AnalysisStore.StoreUserUpdate:input_type -> analysis.StoreUserUpdateReq
|
||||
17, // 38: analysis.AnalysisStore.StoreUserInfo:input_type -> analysis.StoreUserInfoReq
|
||||
24, // 39: analysis.AnalysisDevice.Policy:input_type -> analysis.DevicePolicyReq
|
||||
25, // 40: analysis.AnalysisDevice.Display:input_type -> analysis.DeviceDisplayReq
|
||||
26, // 41: analysis.AnalysisDevice.OssCallback:input_type -> analysis.OssCallbackReq
|
||||
28, // 42: analysis.AnalysisDevice.PyCallback:input_type -> analysis.PyCallbackReq
|
||||
2, // 43: analysis.Analysis.InternalCreateUser:output_type -> analysis.InternalCreateUserData
|
||||
4, // 44: analysis.Analysis.InternalSetRegistered:output_type -> analysis.InternalSetRegisteredData
|
||||
0, // 45: analysis.Analysis.AgreementInfo:output_type -> analysis.Response
|
||||
0, // 46: analysis.Analysis.Switch:output_type -> analysis.Response
|
||||
0, // 47: analysis.Analysis.QrcodeInfo:output_type -> analysis.Response
|
||||
0, // 48: analysis.Analysis.Log:output_type -> analysis.Response
|
||||
0, // 49: analysis.Analysis.Overview:output_type -> analysis.Response
|
||||
0, // 50: analysis.Analysis.User:output_type -> analysis.Response
|
||||
0, // 51: analysis.Analysis.UserDetail:output_type -> analysis.Response
|
||||
0, // 52: analysis.Analysis.UserFacepp:output_type -> analysis.Response
|
||||
0, // 53: analysis.Analysis.UserMode:output_type -> analysis.Response
|
||||
0, // 54: analysis.Analysis.UserLog:output_type -> analysis.Response
|
||||
0, // 55: analysis.Analysis.Banners:output_type -> analysis.Response
|
||||
0, // 56: analysis.Analysis.QrcodeShare:output_type -> analysis.Response
|
||||
0, // 57: analysis.Analysis.GraphDetail:output_type -> analysis.Response
|
||||
0, // 58: analysis.Analysis.FaceppMaps:output_type -> analysis.Response
|
||||
0, // 59: analysis.Analysis.FaceppMapBoxes:output_type -> analysis.Response
|
||||
0, // 60: analysis.Analysis.FaceppMapBoxDelete:output_type -> analysis.Response
|
||||
0, // 61: analysis.Analysis.ImagesDate:output_type -> analysis.Response
|
||||
0, // 62: analysis.Analysis.ImagesList:output_type -> analysis.Response
|
||||
0, // 63: analysis.Analysis.ModeImage:output_type -> analysis.Response
|
||||
0, // 64: analysis.Analysis.DeviceUpdate:output_type -> analysis.Response
|
||||
0, // 65: analysis.AnalysisUser.FaceBind:output_type -> analysis.Response
|
||||
0, // 66: analysis.AnalysisUser.UserImprove:output_type -> analysis.Response
|
||||
0, // 67: analysis.AnalysisUser.UserDelete:output_type -> analysis.Response
|
||||
0, // 68: analysis.AnalysisUser.UserAuth:output_type -> analysis.Response
|
||||
0, // 69: analysis.AnalysisUser.UserAuthList:output_type -> analysis.Response
|
||||
0, // 70: analysis.AnalysisUser.UserAuthDelete:output_type -> analysis.Response
|
||||
0, // 71: analysis.AnalysisUser.UserAuthUpdate:output_type -> analysis.Response
|
||||
0, // 72: analysis.AnalysisUser.DeviceBind:output_type -> analysis.Response
|
||||
0, // 73: analysis.AnalysisUser.DeviceInfo:output_type -> analysis.Response
|
||||
0, // 74: analysis.AnalysisUser.UserLogDelete:output_type -> analysis.Response
|
||||
0, // 75: analysis.AnalysisUser.UserStatus:output_type -> analysis.Response
|
||||
0, // 76: analysis.AnalysisStore.StoreAuth:output_type -> analysis.Response
|
||||
0, // 77: analysis.AnalysisStore.StoreAuthQrcode:output_type -> analysis.Response
|
||||
0, // 78: analysis.AnalysisStore.StoreInfo:output_type -> analysis.Response
|
||||
0, // 79: analysis.AnalysisStore.StoreUserList:output_type -> analysis.Response
|
||||
0, // 80: analysis.AnalysisStore.StoreUserUpdate:output_type -> analysis.Response
|
||||
0, // 81: analysis.AnalysisStore.StoreUserInfo:output_type -> analysis.Response
|
||||
0, // 82: analysis.AnalysisDevice.Policy:output_type -> analysis.Response
|
||||
0, // 83: analysis.AnalysisDevice.Display:output_type -> analysis.Response
|
||||
27, // 84: analysis.AnalysisDevice.OssCallback:output_type -> analysis.OssCallbackResp
|
||||
0, // 85: analysis.AnalysisDevice.PyCallback:output_type -> analysis.Response
|
||||
43, // [43:86] is the sub-list for method output_type
|
||||
0, // [0:43] is the sub-list for method input_type
|
||||
47, // 39: analysis.AnalysisDevice.FaceLogin:input_type -> analysis.FaceLoginReq
|
||||
24, // 40: analysis.AnalysisDevice.Policy:input_type -> analysis.DevicePolicyReq
|
||||
25, // 41: analysis.AnalysisDevice.Display:input_type -> analysis.DeviceDisplayReq
|
||||
26, // 42: analysis.AnalysisDevice.OssCallback:input_type -> analysis.OssCallbackReq
|
||||
28, // 43: analysis.AnalysisDevice.PyCallback:input_type -> analysis.PyCallbackReq
|
||||
44, // 44: analysis.AnalysisAdmin.UserList:input_type -> analysis.AdminUserListReq
|
||||
45, // 45: analysis.AnalysisAdmin.UserArchive:input_type -> analysis.AdminUserArchiveReq
|
||||
46, // 46: analysis.AnalysisAdmin.UserDetail:input_type -> analysis.AdminUserDetailReq
|
||||
2, // 47: analysis.Analysis.InternalCreateUser:output_type -> analysis.InternalCreateUserData
|
||||
4, // 48: analysis.Analysis.InternalSetRegistered:output_type -> analysis.InternalSetRegisteredData
|
||||
0, // 49: analysis.Analysis.AgreementInfo:output_type -> analysis.Response
|
||||
0, // 50: analysis.Analysis.Switch:output_type -> analysis.Response
|
||||
0, // 51: analysis.Analysis.QrcodeInfo:output_type -> analysis.Response
|
||||
0, // 52: analysis.Analysis.Log:output_type -> analysis.Response
|
||||
0, // 53: analysis.Analysis.Overview:output_type -> analysis.Response
|
||||
0, // 54: analysis.Analysis.User:output_type -> analysis.Response
|
||||
0, // 55: analysis.Analysis.UserDetail:output_type -> analysis.Response
|
||||
0, // 56: analysis.Analysis.UserFacepp:output_type -> analysis.Response
|
||||
0, // 57: analysis.Analysis.UserMode:output_type -> analysis.Response
|
||||
0, // 58: analysis.Analysis.UserLog:output_type -> analysis.Response
|
||||
0, // 59: analysis.Analysis.Banners:output_type -> analysis.Response
|
||||
0, // 60: analysis.Analysis.QrcodeShare:output_type -> analysis.Response
|
||||
0, // 61: analysis.Analysis.GraphDetail:output_type -> analysis.Response
|
||||
0, // 62: analysis.Analysis.FaceppMaps:output_type -> analysis.Response
|
||||
0, // 63: analysis.Analysis.FaceppMapBoxes:output_type -> analysis.Response
|
||||
0, // 64: analysis.Analysis.FaceppMapBoxDelete:output_type -> analysis.Response
|
||||
0, // 65: analysis.Analysis.ImagesDate:output_type -> analysis.Response
|
||||
0, // 66: analysis.Analysis.ImagesList:output_type -> analysis.Response
|
||||
0, // 67: analysis.Analysis.ModeImage:output_type -> analysis.Response
|
||||
0, // 68: analysis.Analysis.DeviceUpdate:output_type -> analysis.Response
|
||||
0, // 69: analysis.AnalysisUser.FaceBind:output_type -> analysis.Response
|
||||
0, // 70: analysis.AnalysisUser.UserImprove:output_type -> analysis.Response
|
||||
0, // 71: analysis.AnalysisUser.UserDelete:output_type -> analysis.Response
|
||||
0, // 72: analysis.AnalysisUser.UserAuth:output_type -> analysis.Response
|
||||
0, // 73: analysis.AnalysisUser.UserAuthList:output_type -> analysis.Response
|
||||
0, // 74: analysis.AnalysisUser.UserAuthDelete:output_type -> analysis.Response
|
||||
0, // 75: analysis.AnalysisUser.UserAuthUpdate:output_type -> analysis.Response
|
||||
0, // 76: analysis.AnalysisUser.DeviceBind:output_type -> analysis.Response
|
||||
0, // 77: analysis.AnalysisUser.DeviceInfo:output_type -> analysis.Response
|
||||
0, // 78: analysis.AnalysisUser.UserLogDelete:output_type -> analysis.Response
|
||||
0, // 79: analysis.AnalysisUser.UserStatus:output_type -> analysis.Response
|
||||
0, // 80: analysis.AnalysisStore.StoreAuth:output_type -> analysis.Response
|
||||
0, // 81: analysis.AnalysisStore.StoreAuthQrcode:output_type -> analysis.Response
|
||||
0, // 82: analysis.AnalysisStore.StoreInfo:output_type -> analysis.Response
|
||||
0, // 83: analysis.AnalysisStore.StoreUserList:output_type -> analysis.Response
|
||||
0, // 84: analysis.AnalysisStore.StoreUserUpdate:output_type -> analysis.Response
|
||||
0, // 85: analysis.AnalysisStore.StoreUserInfo:output_type -> analysis.Response
|
||||
0, // 86: analysis.AnalysisDevice.FaceLogin:output_type -> analysis.Response
|
||||
0, // 87: analysis.AnalysisDevice.Policy:output_type -> analysis.Response
|
||||
0, // 88: analysis.AnalysisDevice.Display:output_type -> analysis.Response
|
||||
27, // 89: analysis.AnalysisDevice.OssCallback:output_type -> analysis.OssCallbackResp
|
||||
0, // 90: analysis.AnalysisDevice.PyCallback:output_type -> analysis.Response
|
||||
0, // 91: analysis.AnalysisAdmin.UserList:output_type -> analysis.Response
|
||||
0, // 92: analysis.AnalysisAdmin.UserArchive:output_type -> analysis.Response
|
||||
0, // 93: analysis.AnalysisAdmin.UserDetail:output_type -> analysis.Response
|
||||
47, // [47:94] is the sub-list for method output_type
|
||||
0, // [0:47] 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
|
||||
@@ -2570,9 +2828,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: 44,
|
||||
NumMessages: 48,
|
||||
NumExtensions: 0,
|
||||
NumServices: 4,
|
||||
NumServices: 5,
|
||||
},
|
||||
GoTypes: file_analysis_analysis_proto_goTypes,
|
||||
DependencyIndexes: file_analysis_analysis_proto_depIdxs,
|
||||
|
||||
@@ -1693,6 +1693,7 @@ var AnalysisStore_ServiceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
const (
|
||||
AnalysisDevice_FaceLogin_FullMethodName = "/analysis.AnalysisDevice/FaceLogin"
|
||||
AnalysisDevice_Policy_FullMethodName = "/analysis.AnalysisDevice/Policy"
|
||||
AnalysisDevice_Display_FullMethodName = "/analysis.AnalysisDevice/Display"
|
||||
AnalysisDevice_OssCallback_FullMethodName = "/analysis.AnalysisDevice/OssCallback"
|
||||
@@ -1703,6 +1704,7 @@ const (
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type AnalysisDeviceClient interface {
|
||||
FaceLogin(ctx context.Context, in *FaceLoginReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Policy(ctx context.Context, in *DevicePolicyReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Display(ctx context.Context, in *DeviceDisplayReq, opts ...grpc.CallOption) (*Response, error)
|
||||
OssCallback(ctx context.Context, in *OssCallbackReq, opts ...grpc.CallOption) (*OssCallbackResp, error)
|
||||
@@ -1717,6 +1719,16 @@ func NewAnalysisDeviceClient(cc grpc.ClientConnInterface) AnalysisDeviceClient {
|
||||
return &analysisDeviceClient{cc}
|
||||
}
|
||||
|
||||
func (c *analysisDeviceClient) FaceLogin(ctx context.Context, in *FaceLoginReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisDevice_FaceLogin_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisDeviceClient) Policy(ctx context.Context, in *DevicePolicyReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -1761,6 +1773,7 @@ func (c *analysisDeviceClient) PyCallback(ctx context.Context, in *PyCallbackReq
|
||||
// All implementations must embed UnimplementedAnalysisDeviceServer
|
||||
// for forward compatibility.
|
||||
type AnalysisDeviceServer interface {
|
||||
FaceLogin(context.Context, *FaceLoginReq) (*Response, error)
|
||||
Policy(context.Context, *DevicePolicyReq) (*Response, error)
|
||||
Display(context.Context, *DeviceDisplayReq) (*Response, error)
|
||||
OssCallback(context.Context, *OssCallbackReq) (*OssCallbackResp, error)
|
||||
@@ -1775,6 +1788,9 @@ type AnalysisDeviceServer interface {
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedAnalysisDeviceServer struct{}
|
||||
|
||||
func (UnimplementedAnalysisDeviceServer) FaceLogin(context.Context, *FaceLoginReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FaceLogin not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisDeviceServer) Policy(context.Context, *DevicePolicyReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Policy not implemented")
|
||||
}
|
||||
@@ -1808,6 +1824,24 @@ func RegisterAnalysisDeviceServer(s grpc.ServiceRegistrar, srv AnalysisDeviceSer
|
||||
s.RegisterService(&AnalysisDevice_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _AnalysisDevice_FaceLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FaceLoginReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisDeviceServer).FaceLogin(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisDevice_FaceLogin_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisDeviceServer).FaceLogin(ctx, req.(*FaceLoginReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisDevice_Policy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DevicePolicyReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1887,6 +1921,10 @@ var AnalysisDevice_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "analysis.AnalysisDevice",
|
||||
HandlerType: (*AnalysisDeviceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "FaceLogin",
|
||||
Handler: _AnalysisDevice_FaceLogin_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Policy",
|
||||
Handler: _AnalysisDevice_Policy_Handler,
|
||||
@@ -1907,3 +1945,181 @@ var AnalysisDevice_ServiceDesc = grpc.ServiceDesc{
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "analysis/analysis.proto",
|
||||
}
|
||||
|
||||
const (
|
||||
AnalysisAdmin_UserList_FullMethodName = "/analysis.AnalysisAdmin/UserList"
|
||||
AnalysisAdmin_UserArchive_FullMethodName = "/analysis.AnalysisAdmin/UserArchive"
|
||||
AnalysisAdmin_UserDetail_FullMethodName = "/analysis.AnalysisAdmin/UserDetail"
|
||||
)
|
||||
|
||||
// AnalysisAdminClient is the client API for AnalysisAdmin service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type AnalysisAdminClient interface {
|
||||
UserList(ctx context.Context, in *AdminUserListReq, opts ...grpc.CallOption) (*Response, error)
|
||||
UserArchive(ctx context.Context, in *AdminUserArchiveReq, opts ...grpc.CallOption) (*Response, error)
|
||||
UserDetail(ctx context.Context, in *AdminUserDetailReq, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type analysisAdminClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewAnalysisAdminClient(cc grpc.ClientConnInterface) AnalysisAdminClient {
|
||||
return &analysisAdminClient{cc}
|
||||
}
|
||||
|
||||
func (c *analysisAdminClient) UserList(ctx context.Context, in *AdminUserListReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisAdmin_UserList_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisAdminClient) UserArchive(ctx context.Context, in *AdminUserArchiveReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisAdmin_UserArchive_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *analysisAdminClient) UserDetail(ctx context.Context, in *AdminUserDetailReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, AnalysisAdmin_UserDetail_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AnalysisAdminServer is the server API for AnalysisAdmin service.
|
||||
// All implementations must embed UnimplementedAnalysisAdminServer
|
||||
// for forward compatibility.
|
||||
type AnalysisAdminServer interface {
|
||||
UserList(context.Context, *AdminUserListReq) (*Response, error)
|
||||
UserArchive(context.Context, *AdminUserArchiveReq) (*Response, error)
|
||||
UserDetail(context.Context, *AdminUserDetailReq) (*Response, error)
|
||||
mustEmbedUnimplementedAnalysisAdminServer()
|
||||
}
|
||||
|
||||
// UnimplementedAnalysisAdminServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedAnalysisAdminServer struct{}
|
||||
|
||||
func (UnimplementedAnalysisAdminServer) UserList(context.Context, *AdminUserListReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UserList not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisAdminServer) UserArchive(context.Context, *AdminUserArchiveReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UserArchive not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisAdminServer) UserDetail(context.Context, *AdminUserDetailReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UserDetail not implemented")
|
||||
}
|
||||
func (UnimplementedAnalysisAdminServer) mustEmbedUnimplementedAnalysisAdminServer() {}
|
||||
func (UnimplementedAnalysisAdminServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeAnalysisAdminServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AnalysisAdminServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeAnalysisAdminServer interface {
|
||||
mustEmbedUnimplementedAnalysisAdminServer()
|
||||
}
|
||||
|
||||
func RegisterAnalysisAdminServer(s grpc.ServiceRegistrar, srv AnalysisAdminServer) {
|
||||
// If the following call panics, it indicates UnimplementedAnalysisAdminServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&AnalysisAdmin_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _AnalysisAdmin_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AdminUserListReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisAdminServer).UserList(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisAdmin_UserList_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisAdminServer).UserList(ctx, req.(*AdminUserListReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisAdmin_UserArchive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AdminUserArchiveReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisAdminServer).UserArchive(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisAdmin_UserArchive_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisAdminServer).UserArchive(ctx, req.(*AdminUserArchiveReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AnalysisAdmin_UserDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AdminUserDetailReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AnalysisAdminServer).UserDetail(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AnalysisAdmin_UserDetail_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AnalysisAdminServer).UserDetail(ctx, req.(*AdminUserDetailReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AnalysisAdmin_ServiceDesc is the grpc.ServiceDesc for AnalysisAdmin service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var AnalysisAdmin_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "analysis.AnalysisAdmin",
|
||||
HandlerType: (*AnalysisAdminServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "UserList",
|
||||
Handler: _AnalysisAdmin_UserList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UserArchive",
|
||||
Handler: _AnalysisAdmin_UserArchive_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UserDetail",
|
||||
Handler: _AnalysisAdmin_UserDetail_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "analysis/analysis.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user