Pārlūkot izejas kodu

feat: user tables

BaiLuoYan 3 mēneši atpakaļ
vecāks
revīzija
e1c1fd0d50

+ 31 - 1
pb/client/gogameclient/go_game_client.go

@@ -1,5 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
-// goctl 1.8.5
+// goctl 1.9.2
 // Source: gorpc.proto
 
 package gogameclient
@@ -225,13 +225,43 @@ type (
 	UpgradeResPlanListReq                      = pb.UpgradeResPlanListReq
 	UpgradeResPlanListResp                     = pb.UpgradeResPlanListResp
 	UpgradeResPlanVo                           = pb.UpgradeResPlanVo
+	UserAddReq                                 = pb.UserAddReq
+	UserAddResp                                = pb.UserAddResp
 	UserAppConfigGetReq                        = pb.UserAppConfigGetReq
 	UserAppConfigListReq                       = pb.UserAppConfigListReq
 	UserAppConfigListRes                       = pb.UserAppConfigListRes
 	UserAppConfigVo                            = pb.UserAppConfigVo
+	UserCredentialAddReq                       = pb.UserCredentialAddReq
+	UserCredentialAddResp                      = pb.UserCredentialAddResp
+	UserCredentialDelReq                       = pb.UserCredentialDelReq
+	UserCredentialGetReq                       = pb.UserCredentialGetReq
+	UserCredentialGetResp                      = pb.UserCredentialGetResp
+	UserCredentialListReq                      = pb.UserCredentialListReq
+	UserCredentialListResp                     = pb.UserCredentialListResp
+	UserCredentialUpdateReq                    = pb.UserCredentialUpdateReq
+	UserCredentialUpdateResp                   = pb.UserCredentialUpdateResp
+	UserCredentialVo                           = pb.UserCredentialVo
+	UserDelReq                                 = pb.UserDelReq
+	UserDeviceAddReq                           = pb.UserDeviceAddReq
+	UserDeviceAddResp                          = pb.UserDeviceAddResp
+	UserDeviceDelReq                           = pb.UserDeviceDelReq
+	UserDeviceGetReq                           = pb.UserDeviceGetReq
+	UserDeviceGetResp                          = pb.UserDeviceGetResp
+	UserDeviceListReq                          = pb.UserDeviceListReq
+	UserDeviceListResp                         = pb.UserDeviceListResp
+	UserDeviceUpdateReq                        = pb.UserDeviceUpdateReq
+	UserDeviceUpdateResp                       = pb.UserDeviceUpdateResp
+	UserDeviceVo                               = pb.UserDeviceVo
+	UserGetReq                                 = pb.UserGetReq
+	UserGetResp                                = pb.UserGetResp
+	UserListReq                                = pb.UserListReq
+	UserListResp                               = pb.UserListResp
 	UserTestListReq                            = pb.UserTestListReq
 	UserTestListResp                           = pb.UserTestListResp
 	UserTestVo                                 = pb.UserTestVo
+	UserUpdateReq                              = pb.UserUpdateReq
+	UserUpdateResp                             = pb.UserUpdateResp
+	UserVo                                     = pb.UserVo
 	UserWhiteListReq                           = pb.UserWhiteListReq
 	UserWhiteListResp                          = pb.UserWhiteListResp
 	UserWhiteVo                                = pb.UserWhiteVo

+ 31 - 1
pb/client/gopmpclient/go_pmp_client.go

@@ -1,5 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
-// goctl 1.8.5
+// goctl 1.9.2
 // Source: gorpc.proto
 
 package gopmpclient
@@ -225,13 +225,43 @@ type (
 	UpgradeResPlanListReq                      = pb.UpgradeResPlanListReq
 	UpgradeResPlanListResp                     = pb.UpgradeResPlanListResp
 	UpgradeResPlanVo                           = pb.UpgradeResPlanVo
+	UserAddReq                                 = pb.UserAddReq
+	UserAddResp                                = pb.UserAddResp
 	UserAppConfigGetReq                        = pb.UserAppConfigGetReq
 	UserAppConfigListReq                       = pb.UserAppConfigListReq
 	UserAppConfigListRes                       = pb.UserAppConfigListRes
 	UserAppConfigVo                            = pb.UserAppConfigVo
+	UserCredentialAddReq                       = pb.UserCredentialAddReq
+	UserCredentialAddResp                      = pb.UserCredentialAddResp
+	UserCredentialDelReq                       = pb.UserCredentialDelReq
+	UserCredentialGetReq                       = pb.UserCredentialGetReq
+	UserCredentialGetResp                      = pb.UserCredentialGetResp
+	UserCredentialListReq                      = pb.UserCredentialListReq
+	UserCredentialListResp                     = pb.UserCredentialListResp
+	UserCredentialUpdateReq                    = pb.UserCredentialUpdateReq
+	UserCredentialUpdateResp                   = pb.UserCredentialUpdateResp
+	UserCredentialVo                           = pb.UserCredentialVo
+	UserDelReq                                 = pb.UserDelReq
+	UserDeviceAddReq                           = pb.UserDeviceAddReq
+	UserDeviceAddResp                          = pb.UserDeviceAddResp
+	UserDeviceDelReq                           = pb.UserDeviceDelReq
+	UserDeviceGetReq                           = pb.UserDeviceGetReq
+	UserDeviceGetResp                          = pb.UserDeviceGetResp
+	UserDeviceListReq                          = pb.UserDeviceListReq
+	UserDeviceListResp                         = pb.UserDeviceListResp
+	UserDeviceUpdateReq                        = pb.UserDeviceUpdateReq
+	UserDeviceUpdateResp                       = pb.UserDeviceUpdateResp
+	UserDeviceVo                               = pb.UserDeviceVo
+	UserGetReq                                 = pb.UserGetReq
+	UserGetResp                                = pb.UserGetResp
+	UserListReq                                = pb.UserListReq
+	UserListResp                               = pb.UserListResp
 	UserTestListReq                            = pb.UserTestListReq
 	UserTestListResp                           = pb.UserTestListResp
 	UserTestVo                                 = pb.UserTestVo
+	UserUpdateReq                              = pb.UserUpdateReq
+	UserUpdateResp                             = pb.UserUpdateResp
+	UserVo                                     = pb.UserVo
 	UserWhiteListReq                           = pb.UserWhiteListReq
 	UserWhiteListResp                          = pb.UserWhiteListResp
 	UserWhiteVo                                = pb.UserWhiteVo

+ 31 - 1
pb/client/goshortdramaclient/go_short_drama_client.go

@@ -1,5 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
-// goctl 1.8.5
+// goctl 1.9.2
 // Source: gorpc.proto
 
 package goshortdramaclient
@@ -225,13 +225,43 @@ type (
 	UpgradeResPlanListReq                      = pb.UpgradeResPlanListReq
 	UpgradeResPlanListResp                     = pb.UpgradeResPlanListResp
 	UpgradeResPlanVo                           = pb.UpgradeResPlanVo
+	UserAddReq                                 = pb.UserAddReq
+	UserAddResp                                = pb.UserAddResp
 	UserAppConfigGetReq                        = pb.UserAppConfigGetReq
 	UserAppConfigListReq                       = pb.UserAppConfigListReq
 	UserAppConfigListRes                       = pb.UserAppConfigListRes
 	UserAppConfigVo                            = pb.UserAppConfigVo
+	UserCredentialAddReq                       = pb.UserCredentialAddReq
+	UserCredentialAddResp                      = pb.UserCredentialAddResp
+	UserCredentialDelReq                       = pb.UserCredentialDelReq
+	UserCredentialGetReq                       = pb.UserCredentialGetReq
+	UserCredentialGetResp                      = pb.UserCredentialGetResp
+	UserCredentialListReq                      = pb.UserCredentialListReq
+	UserCredentialListResp                     = pb.UserCredentialListResp
+	UserCredentialUpdateReq                    = pb.UserCredentialUpdateReq
+	UserCredentialUpdateResp                   = pb.UserCredentialUpdateResp
+	UserCredentialVo                           = pb.UserCredentialVo
+	UserDelReq                                 = pb.UserDelReq
+	UserDeviceAddReq                           = pb.UserDeviceAddReq
+	UserDeviceAddResp                          = pb.UserDeviceAddResp
+	UserDeviceDelReq                           = pb.UserDeviceDelReq
+	UserDeviceGetReq                           = pb.UserDeviceGetReq
+	UserDeviceGetResp                          = pb.UserDeviceGetResp
+	UserDeviceListReq                          = pb.UserDeviceListReq
+	UserDeviceListResp                         = pb.UserDeviceListResp
+	UserDeviceUpdateReq                        = pb.UserDeviceUpdateReq
+	UserDeviceUpdateResp                       = pb.UserDeviceUpdateResp
+	UserDeviceVo                               = pb.UserDeviceVo
+	UserGetReq                                 = pb.UserGetReq
+	UserGetResp                                = pb.UserGetResp
+	UserListReq                                = pb.UserListReq
+	UserListResp                               = pb.UserListResp
 	UserTestListReq                            = pb.UserTestListReq
 	UserTestListResp                           = pb.UserTestListResp
 	UserTestVo                                 = pb.UserTestVo
+	UserUpdateReq                              = pb.UserUpdateReq
+	UserUpdateResp                             = pb.UserUpdateResp
+	UserVo                                     = pb.UserVo
 	UserWhiteListReq                           = pb.UserWhiteListReq
 	UserWhiteListResp                          = pb.UserWhiteListResp
 	UserWhiteVo                                = pb.UserWhiteVo

+ 31 - 1
pb/client/gosysclient/go_sys_client.go

@@ -1,5 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
-// goctl 1.8.5
+// goctl 1.9.2
 // Source: gorpc.proto
 
 package gosysclient
@@ -225,13 +225,43 @@ type (
 	UpgradeResPlanListReq                      = pb.UpgradeResPlanListReq
 	UpgradeResPlanListResp                     = pb.UpgradeResPlanListResp
 	UpgradeResPlanVo                           = pb.UpgradeResPlanVo
+	UserAddReq                                 = pb.UserAddReq
+	UserAddResp                                = pb.UserAddResp
 	UserAppConfigGetReq                        = pb.UserAppConfigGetReq
 	UserAppConfigListReq                       = pb.UserAppConfigListReq
 	UserAppConfigListRes                       = pb.UserAppConfigListRes
 	UserAppConfigVo                            = pb.UserAppConfigVo
+	UserCredentialAddReq                       = pb.UserCredentialAddReq
+	UserCredentialAddResp                      = pb.UserCredentialAddResp
+	UserCredentialDelReq                       = pb.UserCredentialDelReq
+	UserCredentialGetReq                       = pb.UserCredentialGetReq
+	UserCredentialGetResp                      = pb.UserCredentialGetResp
+	UserCredentialListReq                      = pb.UserCredentialListReq
+	UserCredentialListResp                     = pb.UserCredentialListResp
+	UserCredentialUpdateReq                    = pb.UserCredentialUpdateReq
+	UserCredentialUpdateResp                   = pb.UserCredentialUpdateResp
+	UserCredentialVo                           = pb.UserCredentialVo
+	UserDelReq                                 = pb.UserDelReq
+	UserDeviceAddReq                           = pb.UserDeviceAddReq
+	UserDeviceAddResp                          = pb.UserDeviceAddResp
+	UserDeviceDelReq                           = pb.UserDeviceDelReq
+	UserDeviceGetReq                           = pb.UserDeviceGetReq
+	UserDeviceGetResp                          = pb.UserDeviceGetResp
+	UserDeviceListReq                          = pb.UserDeviceListReq
+	UserDeviceListResp                         = pb.UserDeviceListResp
+	UserDeviceUpdateReq                        = pb.UserDeviceUpdateReq
+	UserDeviceUpdateResp                       = pb.UserDeviceUpdateResp
+	UserDeviceVo                               = pb.UserDeviceVo
+	UserGetReq                                 = pb.UserGetReq
+	UserGetResp                                = pb.UserGetResp
+	UserListReq                                = pb.UserListReq
+	UserListResp                               = pb.UserListResp
 	UserTestListReq                            = pb.UserTestListReq
 	UserTestListResp                           = pb.UserTestListResp
 	UserTestVo                                 = pb.UserTestVo
+	UserUpdateReq                              = pb.UserUpdateReq
+	UserUpdateResp                             = pb.UserUpdateResp
+	UserVo                                     = pb.UserVo
 	UserWhiteListReq                           = pb.UserWhiteListReq
 	UserWhiteListResp                          = pb.UserWhiteListResp
 	UserWhiteVo                                = pb.UserWhiteVo

+ 127 - 1
pb/client/gouserclient/go_user_client.go

@@ -1,5 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
-// goctl 1.8.5
+// goctl 1.9.2
 // Source: gorpc.proto
 
 package gouserclient
@@ -225,13 +225,43 @@ type (
 	UpgradeResPlanListReq                      = pb.UpgradeResPlanListReq
 	UpgradeResPlanListResp                     = pb.UpgradeResPlanListResp
 	UpgradeResPlanVo                           = pb.UpgradeResPlanVo
+	UserAddReq                                 = pb.UserAddReq
+	UserAddResp                                = pb.UserAddResp
 	UserAppConfigGetReq                        = pb.UserAppConfigGetReq
 	UserAppConfigListReq                       = pb.UserAppConfigListReq
 	UserAppConfigListRes                       = pb.UserAppConfigListRes
 	UserAppConfigVo                            = pb.UserAppConfigVo
+	UserCredentialAddReq                       = pb.UserCredentialAddReq
+	UserCredentialAddResp                      = pb.UserCredentialAddResp
+	UserCredentialDelReq                       = pb.UserCredentialDelReq
+	UserCredentialGetReq                       = pb.UserCredentialGetReq
+	UserCredentialGetResp                      = pb.UserCredentialGetResp
+	UserCredentialListReq                      = pb.UserCredentialListReq
+	UserCredentialListResp                     = pb.UserCredentialListResp
+	UserCredentialUpdateReq                    = pb.UserCredentialUpdateReq
+	UserCredentialUpdateResp                   = pb.UserCredentialUpdateResp
+	UserCredentialVo                           = pb.UserCredentialVo
+	UserDelReq                                 = pb.UserDelReq
+	UserDeviceAddReq                           = pb.UserDeviceAddReq
+	UserDeviceAddResp                          = pb.UserDeviceAddResp
+	UserDeviceDelReq                           = pb.UserDeviceDelReq
+	UserDeviceGetReq                           = pb.UserDeviceGetReq
+	UserDeviceGetResp                          = pb.UserDeviceGetResp
+	UserDeviceListReq                          = pb.UserDeviceListReq
+	UserDeviceListResp                         = pb.UserDeviceListResp
+	UserDeviceUpdateReq                        = pb.UserDeviceUpdateReq
+	UserDeviceUpdateResp                       = pb.UserDeviceUpdateResp
+	UserDeviceVo                               = pb.UserDeviceVo
+	UserGetReq                                 = pb.UserGetReq
+	UserGetResp                                = pb.UserGetResp
+	UserListReq                                = pb.UserListReq
+	UserListResp                               = pb.UserListResp
 	UserTestListReq                            = pb.UserTestListReq
 	UserTestListResp                           = pb.UserTestListResp
 	UserTestVo                                 = pb.UserTestVo
+	UserUpdateReq                              = pb.UserUpdateReq
+	UserUpdateResp                             = pb.UserUpdateResp
+	UserVo                                     = pb.UserVo
 	UserWhiteListReq                           = pb.UserWhiteListReq
 	UserWhiteListResp                          = pb.UserWhiteListResp
 	UserWhiteVo                                = pb.UserWhiteVo
@@ -421,6 +451,24 @@ type (
 		UserTestDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
 		UserTestGet(ctx context.Context, in *UserTestVo, opts ...grpc.CallOption) (*UserTestVo, error)
 		UserTestList(ctx context.Context, in *UserTestListReq, opts ...grpc.CallOption) (*UserTestListResp, error)
+		// User
+		UserAdd(ctx context.Context, in *UserAddReq, opts ...grpc.CallOption) (*UserAddResp, error)
+		UserUpdate(ctx context.Context, in *UserUpdateReq, opts ...grpc.CallOption) (*UserUpdateResp, error)
+		UserDel(ctx context.Context, in *UserDelReq, opts ...grpc.CallOption) (*Empty, error)
+		UserGet(ctx context.Context, in *UserGetReq, opts ...grpc.CallOption) (*UserGetResp, error)
+		UserList(ctx context.Context, in *UserListReq, opts ...grpc.CallOption) (*UserListResp, error)
+		// UserCredential
+		UserCredentialAdd(ctx context.Context, in *UserCredentialAddReq, opts ...grpc.CallOption) (*UserCredentialAddResp, error)
+		UserCredentialUpdate(ctx context.Context, in *UserCredentialUpdateReq, opts ...grpc.CallOption) (*UserCredentialUpdateResp, error)
+		UserCredentialDel(ctx context.Context, in *UserCredentialDelReq, opts ...grpc.CallOption) (*Empty, error)
+		UserCredentialGet(ctx context.Context, in *UserCredentialGetReq, opts ...grpc.CallOption) (*UserCredentialGetResp, error)
+		UserCredentialList(ctx context.Context, in *UserCredentialListReq, opts ...grpc.CallOption) (*UserCredentialListResp, error)
+		// UserDevice
+		UserDeviceAdd(ctx context.Context, in *UserDeviceAddReq, opts ...grpc.CallOption) (*UserDeviceAddResp, error)
+		UserDeviceUpdate(ctx context.Context, in *UserDeviceUpdateReq, opts ...grpc.CallOption) (*UserDeviceUpdateResp, error)
+		UserDeviceDel(ctx context.Context, in *UserDeviceDelReq, opts ...grpc.CallOption) (*Empty, error)
+		UserDeviceGet(ctx context.Context, in *UserDeviceGetReq, opts ...grpc.CallOption) (*UserDeviceGetResp, error)
+		UserDeviceList(ctx context.Context, in *UserDeviceListReq, opts ...grpc.CallOption) (*UserDeviceListResp, error)
 	}
 
 	defaultGoUserClient struct {
@@ -594,3 +642,81 @@ func (m *defaultGoUserClient) UserTestList(ctx context.Context, in *UserTestList
 	client := pb.NewGoUserClientClient(m.cli.Conn())
 	return client.UserTestList(ctx, in, opts...)
 }
+
+// User
+func (m *defaultGoUserClient) UserAdd(ctx context.Context, in *UserAddReq, opts ...grpc.CallOption) (*UserAddResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserAdd(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserUpdate(ctx context.Context, in *UserUpdateReq, opts ...grpc.CallOption) (*UserUpdateResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserUpdate(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserDel(ctx context.Context, in *UserDelReq, opts ...grpc.CallOption) (*Empty, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserDel(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserGet(ctx context.Context, in *UserGetReq, opts ...grpc.CallOption) (*UserGetResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserGet(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserList(ctx context.Context, in *UserListReq, opts ...grpc.CallOption) (*UserListResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserList(ctx, in, opts...)
+}
+
+// UserCredential
+func (m *defaultGoUserClient) UserCredentialAdd(ctx context.Context, in *UserCredentialAddReq, opts ...grpc.CallOption) (*UserCredentialAddResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserCredentialAdd(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserCredentialUpdate(ctx context.Context, in *UserCredentialUpdateReq, opts ...grpc.CallOption) (*UserCredentialUpdateResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserCredentialUpdate(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserCredentialDel(ctx context.Context, in *UserCredentialDelReq, opts ...grpc.CallOption) (*Empty, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserCredentialDel(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserCredentialGet(ctx context.Context, in *UserCredentialGetReq, opts ...grpc.CallOption) (*UserCredentialGetResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserCredentialGet(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserCredentialList(ctx context.Context, in *UserCredentialListReq, opts ...grpc.CallOption) (*UserCredentialListResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserCredentialList(ctx, in, opts...)
+}
+
+// UserDevice
+func (m *defaultGoUserClient) UserDeviceAdd(ctx context.Context, in *UserDeviceAddReq, opts ...grpc.CallOption) (*UserDeviceAddResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserDeviceAdd(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserDeviceUpdate(ctx context.Context, in *UserDeviceUpdateReq, opts ...grpc.CallOption) (*UserDeviceUpdateResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserDeviceUpdate(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserDeviceDel(ctx context.Context, in *UserDeviceDelReq, opts ...grpc.CallOption) (*Empty, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserDeviceDel(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserDeviceGet(ctx context.Context, in *UserDeviceGetReq, opts ...grpc.CallOption) (*UserDeviceGetResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserDeviceGet(ctx, in, opts...)
+}
+
+func (m *defaultGoUserClient) UserDeviceList(ctx context.Context, in *UserDeviceListReq, opts ...grpc.CallOption) (*UserDeviceListResp, error) {
+	client := pb.NewGoUserClientClient(m.cli.Conn())
+	return client.UserDeviceList(ctx, in, opts...)
+}

+ 31 - 1
pb/client/govpnclient/go_vpn_client.go

@@ -1,5 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
-// goctl 1.8.5
+// goctl 1.9.2
 // Source: gorpc.proto
 
 package govpnclient
@@ -225,13 +225,43 @@ type (
 	UpgradeResPlanListReq                      = pb.UpgradeResPlanListReq
 	UpgradeResPlanListResp                     = pb.UpgradeResPlanListResp
 	UpgradeResPlanVo                           = pb.UpgradeResPlanVo
+	UserAddReq                                 = pb.UserAddReq
+	UserAddResp                                = pb.UserAddResp
 	UserAppConfigGetReq                        = pb.UserAppConfigGetReq
 	UserAppConfigListReq                       = pb.UserAppConfigListReq
 	UserAppConfigListRes                       = pb.UserAppConfigListRes
 	UserAppConfigVo                            = pb.UserAppConfigVo
+	UserCredentialAddReq                       = pb.UserCredentialAddReq
+	UserCredentialAddResp                      = pb.UserCredentialAddResp
+	UserCredentialDelReq                       = pb.UserCredentialDelReq
+	UserCredentialGetReq                       = pb.UserCredentialGetReq
+	UserCredentialGetResp                      = pb.UserCredentialGetResp
+	UserCredentialListReq                      = pb.UserCredentialListReq
+	UserCredentialListResp                     = pb.UserCredentialListResp
+	UserCredentialUpdateReq                    = pb.UserCredentialUpdateReq
+	UserCredentialUpdateResp                   = pb.UserCredentialUpdateResp
+	UserCredentialVo                           = pb.UserCredentialVo
+	UserDelReq                                 = pb.UserDelReq
+	UserDeviceAddReq                           = pb.UserDeviceAddReq
+	UserDeviceAddResp                          = pb.UserDeviceAddResp
+	UserDeviceDelReq                           = pb.UserDeviceDelReq
+	UserDeviceGetReq                           = pb.UserDeviceGetReq
+	UserDeviceGetResp                          = pb.UserDeviceGetResp
+	UserDeviceListReq                          = pb.UserDeviceListReq
+	UserDeviceListResp                         = pb.UserDeviceListResp
+	UserDeviceUpdateReq                        = pb.UserDeviceUpdateReq
+	UserDeviceUpdateResp                       = pb.UserDeviceUpdateResp
+	UserDeviceVo                               = pb.UserDeviceVo
+	UserGetReq                                 = pb.UserGetReq
+	UserGetResp                                = pb.UserGetResp
+	UserListReq                                = pb.UserListReq
+	UserListResp                               = pb.UserListResp
 	UserTestListReq                            = pb.UserTestListReq
 	UserTestListResp                           = pb.UserTestListResp
 	UserTestVo                                 = pb.UserTestVo
+	UserUpdateReq                              = pb.UserUpdateReq
+	UserUpdateResp                             = pb.UserUpdateResp
+	UserVo                                     = pb.UserVo
 	UserWhiteListReq                           = pb.UserWhiteListReq
 	UserWhiteListResp                          = pb.UserWhiteListResp
 	UserWhiteVo                                = pb.UserWhiteVo

+ 151 - 19
pb/gorpc.proto

@@ -1988,27 +1988,27 @@ service GoSysClient {
 
 
 
-//白名单表
-message UserWhiteVo{
+// 白名单表
+message UserWhiteVo {
+  int64 id = 1;          // 主键ID
+  int64 userId = 2;      // 用户
+  UserType userType = 3; // 用户类型 1 设备 2 账号
+  Status status = 4;     // 状态
+  int64 createTime = 5;  // 创建时间
+  int64 updateTime = 6;  // 更新时间
+}
+
+// 测试用户表
+message UserTestVo {
   int64 id = 1;                // 主键ID
   int64 userId = 2;            // 用户
-  UserType userType = 3;       //用户类型 1 设备 2 账号
-  Status status = 4;           // 状态
-  int64 createTime = 5;        // 创建时间
-  int64 updateTime = 6;        // 更新时间
-}
-
-//测试用户表
-message UserTestVo{
-  int64 id = 1;                 // 主键ID
-  int64 userId = 2;             // 用户
-  UserType userType = 3;        //用户类型 1 设备 2 账号
-  string area = 4;              // 指定地区
-  repeated string apis = 5;     // 指定接口
-  repeated string routers = 6;  // 指定路由
-  Status status = 7;            // 状态
-  int64 createTime = 8;         // 创建时间
-  int64 updateTime = 9;         // 更新时间
+  UserType userType = 3;       // 用户类型 1 设备 2 账号
+  string area = 4;             // 指定地区
+  repeated string apis = 5;    // 指定接口
+  repeated string routers = 6; // 指定路由
+  Status status = 7;           // 状态
+  int64 createTime = 8;        // 创建时间
+  int64 updateTime = 9;        // 更新时间
 }
 
 // Account
@@ -2172,6 +2172,117 @@ message UserAppConfigListRes {
   repeated UserAppConfigVo list = 2;
 }
 
+message UserVo {
+  int64 id = 1;               // ID
+  string productCode = 2;     // 产品标识
+  string uuid = 3;            // 用户唯一ID
+  string deviceId = 4;        // 注册时使用的设备ID
+  int64 accountType = 5;      // 1: device 2: account (其实可以通过查询 user_credential 中有没有登录凭证来确定此账号是已注册的账号还是游客类型的账号)
+  string registType = 6;      // 注册方式 normal email phone wechat qq google apple (其实可以通过查询 user_credential 中最早的一条记录的 identityType 来确定)
+  int64 registFrom = 7;       // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
+  string referChannel = 8;    // 推广渠道
+  string referSubChannel = 9; // 推广子渠道
+  string nickname = 10;       // 用户昵称
+  string avatar = 11;         // 用户头像地址
+  string config = 12;         // 保留字段,用于扩展
+  Status status = 13;         // 状态 1: 正常 2: 冻结
+  int64 createTime = 14;      // 创建时间
+  int64 updateTime = 15;      // 修改时间
+}
+
+message UserAddReq { UserVo vo = 1; }
+message UserAddResp { UserVo vo = 1; }
+
+message UserUpdateReq { UserVo vo = 1; }
+message UserUpdateResp { UserVo vo = 1; }
+
+message UserDelReq { repeated int64 ids = 1; }
+
+message UserGetReq { UserVo vo = 1; }
+message UserGetResp { UserVo vo = 1; }
+
+message UserListReq {
+  Page page = 1;
+  UserVo vo = 2;
+  repeated int64 excludeIds = 3;    // 排除的ID
+  repeated string productCodes = 4; // 产品code
+  repeated string uuids = 5;        // 用户唯一ID
+  repeated string deviceIds = 6;    // 设备ID (device 表的 id)
+}
+message UserListResp {
+  int64 total = 1;
+  repeated UserVo list = 2;
+}
+
+message UserCredentialVo {
+  int64 id = 1;            // ID
+  int64 userId = 2;        // 用户ID
+  string productCode = 3;  // 产品标识
+  string identityType = 4; // 凭证类型: username, email, phone, wechat, qq, google, apple 等
+  string identifier = 5;   // 凭证标识
+  string credential = 6;   // 凭证密钥(密码/token)
+  int64 isVerified = 7;    // 是否已验证 1: 已验证 2: 未验证
+  int64 registFrom = 8;    // 从哪里注册 0: unknown 1: guest 2: app 3: web 4: pc 9999: invalid
+  Status status = 9;       // 状态 1: 正常 2: 禁用
+  int64 createTime = 10;   // 创建时间/注册时间
+  int64 updateTime = 11;   // 更新时间
+}
+
+message UserCredentialAddReq { UserCredentialVo vo = 1; }
+message UserCredentialAddResp { UserCredentialVo vo = 1; }
+
+message UserCredentialUpdateReq { UserCredentialVo vo = 1; }
+message UserCredentialUpdateResp { UserCredentialVo vo = 1; }
+
+message UserCredentialDelReq { repeated int64 ids = 1; }
+
+message UserCredentialGetReq { UserCredentialVo vo = 1; }
+message UserCredentialGetResp { UserCredentialVo vo = 1; }
+
+message UserCredentialListReq {
+  Page page = 1;
+  UserCredentialVo vo = 2;
+  repeated int64 excludeIds = 3; // 排除的ID
+}
+message UserCredentialListResp {
+  int64 total = 1;
+  repeated UserCredentialVo list = 2;
+}
+
+message UserDeviceVo {
+  int64 id = 1;                // ID
+  int64 userId = 2;            // 用户ID
+  int64 did = 3;               // 设备ID
+  string sessionId = 4;        // 登录凭证
+  int64 sessionCreateTime = 5; // 凭证创建时间
+  Status status = 6;           // 状态 1: 正常 2: 禁用
+  int64 updateTime = 7;        // 更新时间
+  int64 createTime = 8;        // 创建时间
+}
+
+message UserDeviceAddReq { UserDeviceVo vo = 1; }
+message UserDeviceAddResp { UserDeviceVo vo = 1; }
+
+message UserDeviceUpdateReq { UserDeviceVo vo = 1; }
+message UserDeviceUpdateResp { UserDeviceVo vo = 1; }
+
+message UserDeviceDelReq { repeated int64 ids = 1; }
+
+message UserDeviceGetReq { UserDeviceVo vo = 1; }
+message UserDeviceGetResp { UserDeviceVo vo = 1; }
+
+message UserDeviceListReq {
+  Page page = 1;
+  UserDeviceVo vo = 2;
+  repeated int64 excludeIds = 3; // 排除的ID
+  repeated int64 userIds = 4;    // 用户ID
+  repeated int64 dIds = 5;       // device 表的 id
+}
+message UserDeviceListResp {
+  int64 total = 1;
+  repeated UserDeviceVo list = 2;
+}
+
 // 用户模块
 service GoUserClient {
   rpc Ping(Request) returns (Response);
@@ -2217,6 +2328,27 @@ service GoUserClient {
   rpc UserTestDel(Ids) returns (Empty);
   rpc UserTestGet(UserTestVo) returns (UserTestVo);
   rpc UserTestList(UserTestListReq) returns (UserTestListResp);
+
+  // User
+  rpc UserAdd(UserAddReq) returns (UserAddResp);
+  rpc UserUpdate(UserUpdateReq) returns (UserUpdateResp);
+  rpc UserDel(UserDelReq) returns (Empty);
+  rpc UserGet(UserGetReq) returns (UserGetResp);
+  rpc UserList(UserListReq) returns (UserListResp);
+
+  // UserCredential
+  rpc UserCredentialAdd(UserCredentialAddReq) returns (UserCredentialAddResp);
+  rpc UserCredentialUpdate(UserCredentialUpdateReq) returns (UserCredentialUpdateResp);
+  rpc UserCredentialDel(UserCredentialDelReq) returns (Empty);
+  rpc UserCredentialGet(UserCredentialGetReq) returns (UserCredentialGetResp);
+  rpc UserCredentialList(UserCredentialListReq) returns (UserCredentialListResp);
+
+  // UserDevice
+  rpc UserDeviceAdd(UserDeviceAddReq) returns (UserDeviceAddResp);
+  rpc UserDeviceUpdate(UserDeviceUpdateReq) returns (UserDeviceUpdateResp);
+  rpc UserDeviceDel(UserDeviceDelReq) returns (Empty);
+  rpc UserDeviceGet(UserDeviceGetReq) returns (UserDeviceGetResp);
+  rpc UserDeviceList(UserDeviceListReq) returns (UserDeviceListResp);
 }
 
 

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1683 - 3
pb/pb/gorpc.pb.go


+ 608 - 32
pb/pb/gorpc_grpc.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 // versions:
 // - protoc-gen-go-grpc v1.5.1
-// - protoc             v3.19.4
+// - protoc             v6.33.0
 // source: gorpc.proto
 
 package pb
@@ -8991,37 +8991,52 @@ var GoSysClient_ServiceDesc = grpc.ServiceDesc{
 }
 
 const (
-	GoUserClient_Ping_FullMethodName                = "/gorpc.GoUserClient/Ping"
-	GoUserClient_UserAppConfigAdd_FullMethodName    = "/gorpc.GoUserClient/UserAppConfigAdd"
-	GoUserClient_UserAppConfigUpdate_FullMethodName = "/gorpc.GoUserClient/UserAppConfigUpdate"
-	GoUserClient_UserAppConfigDel_FullMethodName    = "/gorpc.GoUserClient/UserAppConfigDel"
-	GoUserClient_UserAppConfigGet_FullMethodName    = "/gorpc.GoUserClient/UserAppConfigGet"
-	GoUserClient_UserAppConfigList_FullMethodName   = "/gorpc.GoUserClient/UserAppConfigList"
-	GoUserClient_DeviceAdd_FullMethodName           = "/gorpc.GoUserClient/DeviceAdd"
-	GoUserClient_DeviceUpdate_FullMethodName        = "/gorpc.GoUserClient/DeviceUpdate"
-	GoUserClient_DeviceDel_FullMethodName           = "/gorpc.GoUserClient/DeviceDel"
-	GoUserClient_DeviceGet_FullMethodName           = "/gorpc.GoUserClient/DeviceGet"
-	GoUserClient_DeviceList_FullMethodName          = "/gorpc.GoUserClient/DeviceList"
-	GoUserClient_AccountAdd_FullMethodName          = "/gorpc.GoUserClient/AccountAdd"
-	GoUserClient_AccountUpdate_FullMethodName       = "/gorpc.GoUserClient/AccountUpdate"
-	GoUserClient_AccountDel_FullMethodName          = "/gorpc.GoUserClient/AccountDel"
-	GoUserClient_AccountGet_FullMethodName          = "/gorpc.GoUserClient/AccountGet"
-	GoUserClient_AccountList_FullMethodName         = "/gorpc.GoUserClient/AccountList"
-	GoUserClient_AccountDeviceAdd_FullMethodName    = "/gorpc.GoUserClient/AccountDeviceAdd"
-	GoUserClient_AccountDeviceUpdate_FullMethodName = "/gorpc.GoUserClient/AccountDeviceUpdate"
-	GoUserClient_AccountDeviceDel_FullMethodName    = "/gorpc.GoUserClient/AccountDeviceDel"
-	GoUserClient_AccountDeviceGet_FullMethodName    = "/gorpc.GoUserClient/AccountDeviceGet"
-	GoUserClient_AccountDeviceList_FullMethodName   = "/gorpc.GoUserClient/AccountDeviceList"
-	GoUserClient_UserWhiteAdd_FullMethodName        = "/gorpc.GoUserClient/UserWhiteAdd"
-	GoUserClient_UserWhiteUpdate_FullMethodName     = "/gorpc.GoUserClient/UserWhiteUpdate"
-	GoUserClient_UserWhiteDel_FullMethodName        = "/gorpc.GoUserClient/UserWhiteDel"
-	GoUserClient_UserWhiteGet_FullMethodName        = "/gorpc.GoUserClient/UserWhiteGet"
-	GoUserClient_UserWhiteList_FullMethodName       = "/gorpc.GoUserClient/UserWhiteList"
-	GoUserClient_UserTestAdd_FullMethodName         = "/gorpc.GoUserClient/UserTestAdd"
-	GoUserClient_UserTestUpdate_FullMethodName      = "/gorpc.GoUserClient/UserTestUpdate"
-	GoUserClient_UserTestDel_FullMethodName         = "/gorpc.GoUserClient/UserTestDel"
-	GoUserClient_UserTestGet_FullMethodName         = "/gorpc.GoUserClient/UserTestGet"
-	GoUserClient_UserTestList_FullMethodName        = "/gorpc.GoUserClient/UserTestList"
+	GoUserClient_Ping_FullMethodName                 = "/gorpc.GoUserClient/Ping"
+	GoUserClient_UserAppConfigAdd_FullMethodName     = "/gorpc.GoUserClient/UserAppConfigAdd"
+	GoUserClient_UserAppConfigUpdate_FullMethodName  = "/gorpc.GoUserClient/UserAppConfigUpdate"
+	GoUserClient_UserAppConfigDel_FullMethodName     = "/gorpc.GoUserClient/UserAppConfigDel"
+	GoUserClient_UserAppConfigGet_FullMethodName     = "/gorpc.GoUserClient/UserAppConfigGet"
+	GoUserClient_UserAppConfigList_FullMethodName    = "/gorpc.GoUserClient/UserAppConfigList"
+	GoUserClient_DeviceAdd_FullMethodName            = "/gorpc.GoUserClient/DeviceAdd"
+	GoUserClient_DeviceUpdate_FullMethodName         = "/gorpc.GoUserClient/DeviceUpdate"
+	GoUserClient_DeviceDel_FullMethodName            = "/gorpc.GoUserClient/DeviceDel"
+	GoUserClient_DeviceGet_FullMethodName            = "/gorpc.GoUserClient/DeviceGet"
+	GoUserClient_DeviceList_FullMethodName           = "/gorpc.GoUserClient/DeviceList"
+	GoUserClient_AccountAdd_FullMethodName           = "/gorpc.GoUserClient/AccountAdd"
+	GoUserClient_AccountUpdate_FullMethodName        = "/gorpc.GoUserClient/AccountUpdate"
+	GoUserClient_AccountDel_FullMethodName           = "/gorpc.GoUserClient/AccountDel"
+	GoUserClient_AccountGet_FullMethodName           = "/gorpc.GoUserClient/AccountGet"
+	GoUserClient_AccountList_FullMethodName          = "/gorpc.GoUserClient/AccountList"
+	GoUserClient_AccountDeviceAdd_FullMethodName     = "/gorpc.GoUserClient/AccountDeviceAdd"
+	GoUserClient_AccountDeviceUpdate_FullMethodName  = "/gorpc.GoUserClient/AccountDeviceUpdate"
+	GoUserClient_AccountDeviceDel_FullMethodName     = "/gorpc.GoUserClient/AccountDeviceDel"
+	GoUserClient_AccountDeviceGet_FullMethodName     = "/gorpc.GoUserClient/AccountDeviceGet"
+	GoUserClient_AccountDeviceList_FullMethodName    = "/gorpc.GoUserClient/AccountDeviceList"
+	GoUserClient_UserWhiteAdd_FullMethodName         = "/gorpc.GoUserClient/UserWhiteAdd"
+	GoUserClient_UserWhiteUpdate_FullMethodName      = "/gorpc.GoUserClient/UserWhiteUpdate"
+	GoUserClient_UserWhiteDel_FullMethodName         = "/gorpc.GoUserClient/UserWhiteDel"
+	GoUserClient_UserWhiteGet_FullMethodName         = "/gorpc.GoUserClient/UserWhiteGet"
+	GoUserClient_UserWhiteList_FullMethodName        = "/gorpc.GoUserClient/UserWhiteList"
+	GoUserClient_UserTestAdd_FullMethodName          = "/gorpc.GoUserClient/UserTestAdd"
+	GoUserClient_UserTestUpdate_FullMethodName       = "/gorpc.GoUserClient/UserTestUpdate"
+	GoUserClient_UserTestDel_FullMethodName          = "/gorpc.GoUserClient/UserTestDel"
+	GoUserClient_UserTestGet_FullMethodName          = "/gorpc.GoUserClient/UserTestGet"
+	GoUserClient_UserTestList_FullMethodName         = "/gorpc.GoUserClient/UserTestList"
+	GoUserClient_UserAdd_FullMethodName              = "/gorpc.GoUserClient/UserAdd"
+	GoUserClient_UserUpdate_FullMethodName           = "/gorpc.GoUserClient/UserUpdate"
+	GoUserClient_UserDel_FullMethodName              = "/gorpc.GoUserClient/UserDel"
+	GoUserClient_UserGet_FullMethodName              = "/gorpc.GoUserClient/UserGet"
+	GoUserClient_UserList_FullMethodName             = "/gorpc.GoUserClient/UserList"
+	GoUserClient_UserCredentialAdd_FullMethodName    = "/gorpc.GoUserClient/UserCredentialAdd"
+	GoUserClient_UserCredentialUpdate_FullMethodName = "/gorpc.GoUserClient/UserCredentialUpdate"
+	GoUserClient_UserCredentialDel_FullMethodName    = "/gorpc.GoUserClient/UserCredentialDel"
+	GoUserClient_UserCredentialGet_FullMethodName    = "/gorpc.GoUserClient/UserCredentialGet"
+	GoUserClient_UserCredentialList_FullMethodName   = "/gorpc.GoUserClient/UserCredentialList"
+	GoUserClient_UserDeviceAdd_FullMethodName        = "/gorpc.GoUserClient/UserDeviceAdd"
+	GoUserClient_UserDeviceUpdate_FullMethodName     = "/gorpc.GoUserClient/UserDeviceUpdate"
+	GoUserClient_UserDeviceDel_FullMethodName        = "/gorpc.GoUserClient/UserDeviceDel"
+	GoUserClient_UserDeviceGet_FullMethodName        = "/gorpc.GoUserClient/UserDeviceGet"
+	GoUserClient_UserDeviceList_FullMethodName       = "/gorpc.GoUserClient/UserDeviceList"
 )
 
 // GoUserClientClient is the client API for GoUserClient service.
@@ -9067,6 +9082,24 @@ type GoUserClientClient interface {
 	UserTestDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
 	UserTestGet(ctx context.Context, in *UserTestVo, opts ...grpc.CallOption) (*UserTestVo, error)
 	UserTestList(ctx context.Context, in *UserTestListReq, opts ...grpc.CallOption) (*UserTestListResp, error)
+	// User
+	UserAdd(ctx context.Context, in *UserAddReq, opts ...grpc.CallOption) (*UserAddResp, error)
+	UserUpdate(ctx context.Context, in *UserUpdateReq, opts ...grpc.CallOption) (*UserUpdateResp, error)
+	UserDel(ctx context.Context, in *UserDelReq, opts ...grpc.CallOption) (*Empty, error)
+	UserGet(ctx context.Context, in *UserGetReq, opts ...grpc.CallOption) (*UserGetResp, error)
+	UserList(ctx context.Context, in *UserListReq, opts ...grpc.CallOption) (*UserListResp, error)
+	// UserCredential
+	UserCredentialAdd(ctx context.Context, in *UserCredentialAddReq, opts ...grpc.CallOption) (*UserCredentialAddResp, error)
+	UserCredentialUpdate(ctx context.Context, in *UserCredentialUpdateReq, opts ...grpc.CallOption) (*UserCredentialUpdateResp, error)
+	UserCredentialDel(ctx context.Context, in *UserCredentialDelReq, opts ...grpc.CallOption) (*Empty, error)
+	UserCredentialGet(ctx context.Context, in *UserCredentialGetReq, opts ...grpc.CallOption) (*UserCredentialGetResp, error)
+	UserCredentialList(ctx context.Context, in *UserCredentialListReq, opts ...grpc.CallOption) (*UserCredentialListResp, error)
+	// UserDevice
+	UserDeviceAdd(ctx context.Context, in *UserDeviceAddReq, opts ...grpc.CallOption) (*UserDeviceAddResp, error)
+	UserDeviceUpdate(ctx context.Context, in *UserDeviceUpdateReq, opts ...grpc.CallOption) (*UserDeviceUpdateResp, error)
+	UserDeviceDel(ctx context.Context, in *UserDeviceDelReq, opts ...grpc.CallOption) (*Empty, error)
+	UserDeviceGet(ctx context.Context, in *UserDeviceGetReq, opts ...grpc.CallOption) (*UserDeviceGetResp, error)
+	UserDeviceList(ctx context.Context, in *UserDeviceListReq, opts ...grpc.CallOption) (*UserDeviceListResp, error)
 }
 
 type goUserClientClient struct {
@@ -9387,6 +9420,156 @@ func (c *goUserClientClient) UserTestList(ctx context.Context, in *UserTestListR
 	return out, nil
 }
 
+func (c *goUserClientClient) UserAdd(ctx context.Context, in *UserAddReq, opts ...grpc.CallOption) (*UserAddResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserAddResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserAdd_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserUpdate(ctx context.Context, in *UserUpdateReq, opts ...grpc.CallOption) (*UserUpdateResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserUpdateResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserUpdate_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserDel(ctx context.Context, in *UserDelReq, opts ...grpc.CallOption) (*Empty, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(Empty)
+	err := c.cc.Invoke(ctx, GoUserClient_UserDel_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserGet(ctx context.Context, in *UserGetReq, opts ...grpc.CallOption) (*UserGetResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserGetResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserGet_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserList(ctx context.Context, in *UserListReq, opts ...grpc.CallOption) (*UserListResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserListResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserList_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserCredentialAdd(ctx context.Context, in *UserCredentialAddReq, opts ...grpc.CallOption) (*UserCredentialAddResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserCredentialAddResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserCredentialAdd_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserCredentialUpdate(ctx context.Context, in *UserCredentialUpdateReq, opts ...grpc.CallOption) (*UserCredentialUpdateResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserCredentialUpdateResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserCredentialUpdate_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserCredentialDel(ctx context.Context, in *UserCredentialDelReq, opts ...grpc.CallOption) (*Empty, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(Empty)
+	err := c.cc.Invoke(ctx, GoUserClient_UserCredentialDel_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserCredentialGet(ctx context.Context, in *UserCredentialGetReq, opts ...grpc.CallOption) (*UserCredentialGetResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserCredentialGetResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserCredentialGet_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserCredentialList(ctx context.Context, in *UserCredentialListReq, opts ...grpc.CallOption) (*UserCredentialListResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserCredentialListResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserCredentialList_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserDeviceAdd(ctx context.Context, in *UserDeviceAddReq, opts ...grpc.CallOption) (*UserDeviceAddResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserDeviceAddResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserDeviceAdd_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserDeviceUpdate(ctx context.Context, in *UserDeviceUpdateReq, opts ...grpc.CallOption) (*UserDeviceUpdateResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserDeviceUpdateResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserDeviceUpdate_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserDeviceDel(ctx context.Context, in *UserDeviceDelReq, opts ...grpc.CallOption) (*Empty, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(Empty)
+	err := c.cc.Invoke(ctx, GoUserClient_UserDeviceDel_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserDeviceGet(ctx context.Context, in *UserDeviceGetReq, opts ...grpc.CallOption) (*UserDeviceGetResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserDeviceGetResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserDeviceGet_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *goUserClientClient) UserDeviceList(ctx context.Context, in *UserDeviceListReq, opts ...grpc.CallOption) (*UserDeviceListResp, error) {
+	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+	out := new(UserDeviceListResp)
+	err := c.cc.Invoke(ctx, GoUserClient_UserDeviceList_FullMethodName, in, out, cOpts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // GoUserClientServer is the server API for GoUserClient service.
 // All implementations must embed UnimplementedGoUserClientServer
 // for forward compatibility.
@@ -9430,6 +9613,24 @@ type GoUserClientServer interface {
 	UserTestDel(context.Context, *Ids) (*Empty, error)
 	UserTestGet(context.Context, *UserTestVo) (*UserTestVo, error)
 	UserTestList(context.Context, *UserTestListReq) (*UserTestListResp, error)
+	// User
+	UserAdd(context.Context, *UserAddReq) (*UserAddResp, error)
+	UserUpdate(context.Context, *UserUpdateReq) (*UserUpdateResp, error)
+	UserDel(context.Context, *UserDelReq) (*Empty, error)
+	UserGet(context.Context, *UserGetReq) (*UserGetResp, error)
+	UserList(context.Context, *UserListReq) (*UserListResp, error)
+	// UserCredential
+	UserCredentialAdd(context.Context, *UserCredentialAddReq) (*UserCredentialAddResp, error)
+	UserCredentialUpdate(context.Context, *UserCredentialUpdateReq) (*UserCredentialUpdateResp, error)
+	UserCredentialDel(context.Context, *UserCredentialDelReq) (*Empty, error)
+	UserCredentialGet(context.Context, *UserCredentialGetReq) (*UserCredentialGetResp, error)
+	UserCredentialList(context.Context, *UserCredentialListReq) (*UserCredentialListResp, error)
+	// UserDevice
+	UserDeviceAdd(context.Context, *UserDeviceAddReq) (*UserDeviceAddResp, error)
+	UserDeviceUpdate(context.Context, *UserDeviceUpdateReq) (*UserDeviceUpdateResp, error)
+	UserDeviceDel(context.Context, *UserDeviceDelReq) (*Empty, error)
+	UserDeviceGet(context.Context, *UserDeviceGetReq) (*UserDeviceGetResp, error)
+	UserDeviceList(context.Context, *UserDeviceListReq) (*UserDeviceListResp, error)
 	mustEmbedUnimplementedGoUserClientServer()
 }
 
@@ -9533,6 +9734,51 @@ func (UnimplementedGoUserClientServer) UserTestGet(context.Context, *UserTestVo)
 func (UnimplementedGoUserClientServer) UserTestList(context.Context, *UserTestListReq) (*UserTestListResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UserTestList not implemented")
 }
+func (UnimplementedGoUserClientServer) UserAdd(context.Context, *UserAddReq) (*UserAddResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented")
+}
+func (UnimplementedGoUserClientServer) UserUpdate(context.Context, *UserUpdateReq) (*UserUpdateResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserUpdate not implemented")
+}
+func (UnimplementedGoUserClientServer) UserDel(context.Context, *UserDelReq) (*Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserDel not implemented")
+}
+func (UnimplementedGoUserClientServer) UserGet(context.Context, *UserGetReq) (*UserGetResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserGet not implemented")
+}
+func (UnimplementedGoUserClientServer) UserList(context.Context, *UserListReq) (*UserListResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
+}
+func (UnimplementedGoUserClientServer) UserCredentialAdd(context.Context, *UserCredentialAddReq) (*UserCredentialAddResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserCredentialAdd not implemented")
+}
+func (UnimplementedGoUserClientServer) UserCredentialUpdate(context.Context, *UserCredentialUpdateReq) (*UserCredentialUpdateResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserCredentialUpdate not implemented")
+}
+func (UnimplementedGoUserClientServer) UserCredentialDel(context.Context, *UserCredentialDelReq) (*Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserCredentialDel not implemented")
+}
+func (UnimplementedGoUserClientServer) UserCredentialGet(context.Context, *UserCredentialGetReq) (*UserCredentialGetResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserCredentialGet not implemented")
+}
+func (UnimplementedGoUserClientServer) UserCredentialList(context.Context, *UserCredentialListReq) (*UserCredentialListResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserCredentialList not implemented")
+}
+func (UnimplementedGoUserClientServer) UserDeviceAdd(context.Context, *UserDeviceAddReq) (*UserDeviceAddResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserDeviceAdd not implemented")
+}
+func (UnimplementedGoUserClientServer) UserDeviceUpdate(context.Context, *UserDeviceUpdateReq) (*UserDeviceUpdateResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserDeviceUpdate not implemented")
+}
+func (UnimplementedGoUserClientServer) UserDeviceDel(context.Context, *UserDeviceDelReq) (*Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserDeviceDel not implemented")
+}
+func (UnimplementedGoUserClientServer) UserDeviceGet(context.Context, *UserDeviceGetReq) (*UserDeviceGetResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserDeviceGet not implemented")
+}
+func (UnimplementedGoUserClientServer) UserDeviceList(context.Context, *UserDeviceListReq) (*UserDeviceListResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserDeviceList not implemented")
+}
 func (UnimplementedGoUserClientServer) mustEmbedUnimplementedGoUserClientServer() {}
 func (UnimplementedGoUserClientServer) testEmbeddedByValue()                      {}
 
@@ -10112,6 +10358,276 @@ func _GoUserClient_UserTestList_Handler(srv interface{}, ctx context.Context, de
 	return interceptor(ctx, in, info, handler)
 }
 
+func _GoUserClient_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserAddReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserAdd(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserAdd_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserAdd(ctx, req.(*UserAddReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserUpdateReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserUpdate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserUpdate_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserUpdate(ctx, req.(*UserUpdateReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserDelReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserDel(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserDel_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserDel(ctx, req.(*UserDelReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserGetReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserGet(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserGet_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserGet(ctx, req.(*UserGetReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserListReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserList_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserList(ctx, req.(*UserListReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserCredentialAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserCredentialAddReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserCredentialAdd(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserCredentialAdd_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserCredentialAdd(ctx, req.(*UserCredentialAddReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserCredentialUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserCredentialUpdateReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserCredentialUpdate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserCredentialUpdate_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserCredentialUpdate(ctx, req.(*UserCredentialUpdateReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserCredentialDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserCredentialDelReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserCredentialDel(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserCredentialDel_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserCredentialDel(ctx, req.(*UserCredentialDelReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserCredentialGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserCredentialGetReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserCredentialGet(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserCredentialGet_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserCredentialGet(ctx, req.(*UserCredentialGetReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserCredentialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserCredentialListReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserCredentialList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserCredentialList_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserCredentialList(ctx, req.(*UserCredentialListReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserDeviceAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserDeviceAddReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserDeviceAdd(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserDeviceAdd_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserDeviceAdd(ctx, req.(*UserDeviceAddReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserDeviceUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserDeviceUpdateReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserDeviceUpdate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserDeviceUpdate_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserDeviceUpdate(ctx, req.(*UserDeviceUpdateReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserDeviceDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserDeviceDelReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserDeviceDel(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserDeviceDel_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserDeviceDel(ctx, req.(*UserDeviceDelReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserDeviceGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserDeviceGetReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserDeviceGet(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserDeviceGet_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserDeviceGet(ctx, req.(*UserDeviceGetReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _GoUserClient_UserDeviceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserDeviceListReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(GoUserClientServer).UserDeviceList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: GoUserClient_UserDeviceList_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(GoUserClientServer).UserDeviceList(ctx, req.(*UserDeviceListReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // GoUserClient_ServiceDesc is the grpc.ServiceDesc for GoUserClient service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -10243,6 +10759,66 @@ var GoUserClient_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "UserTestList",
 			Handler:    _GoUserClient_UserTestList_Handler,
 		},
+		{
+			MethodName: "UserAdd",
+			Handler:    _GoUserClient_UserAdd_Handler,
+		},
+		{
+			MethodName: "UserUpdate",
+			Handler:    _GoUserClient_UserUpdate_Handler,
+		},
+		{
+			MethodName: "UserDel",
+			Handler:    _GoUserClient_UserDel_Handler,
+		},
+		{
+			MethodName: "UserGet",
+			Handler:    _GoUserClient_UserGet_Handler,
+		},
+		{
+			MethodName: "UserList",
+			Handler:    _GoUserClient_UserList_Handler,
+		},
+		{
+			MethodName: "UserCredentialAdd",
+			Handler:    _GoUserClient_UserCredentialAdd_Handler,
+		},
+		{
+			MethodName: "UserCredentialUpdate",
+			Handler:    _GoUserClient_UserCredentialUpdate_Handler,
+		},
+		{
+			MethodName: "UserCredentialDel",
+			Handler:    _GoUserClient_UserCredentialDel_Handler,
+		},
+		{
+			MethodName: "UserCredentialGet",
+			Handler:    _GoUserClient_UserCredentialGet_Handler,
+		},
+		{
+			MethodName: "UserCredentialList",
+			Handler:    _GoUserClient_UserCredentialList_Handler,
+		},
+		{
+			MethodName: "UserDeviceAdd",
+			Handler:    _GoUserClient_UserDeviceAdd_Handler,
+		},
+		{
+			MethodName: "UserDeviceUpdate",
+			Handler:    _GoUserClient_UserDeviceUpdate_Handler,
+		},
+		{
+			MethodName: "UserDeviceDel",
+			Handler:    _GoUserClient_UserDeviceDel_Handler,
+		},
+		{
+			MethodName: "UserDeviceGet",
+			Handler:    _GoUserClient_UserDeviceGet_Handler,
+		},
+		{
+			MethodName: "UserDeviceList",
+			Handler:    _GoUserClient_UserDeviceList_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "gorpc.proto",

+ 33 - 33
pb/user.proto

@@ -5,27 +5,27 @@ option go_package = "code.clickto.dev/nomo-server/go-service-pb/client";
 
 import "pb/common.proto";
 
-//白名单表
-message UserWhiteVo{
-  int64 id = 1;                // 主键ID
-  int64 userId = 2;            // 用户
-  UserType userType = 3;       //用户类型 1 设备 2 账号
-  Status status = 4;           // 状态
-  int64 createTime = 5;        // 创建时间
-  int64 updateTime = 6;        // 更新时间
+// 白名单表
+message UserWhiteVo {
+  int64 id = 1;          // 主键ID
+  int64 userId = 2;      // 用户
+  UserType userType = 3; // 用户类型 1 设备 2 账号
+  Status status = 4;     // 状态
+  int64 createTime = 5;  // 创建时间
+  int64 updateTime = 6;  // 更新时间
 }
 
-//测试用户表
-message UserTestVo{
-  int64 id = 1;                 // 主键ID
-  int64 userId = 2;             // 用户
-  UserType userType = 3;        //用户类型 1 设备 2 账号
-  string area = 4;              // 指定地区
-  repeated string apis = 5;     // 指定接口
-  repeated string routers = 6;  // 指定路由
-  Status status = 7;            // 状态
-  int64 createTime = 8;         // 创建时间
-  int64 updateTime = 9;         // 更新时间
+// 测试用户表
+message UserTestVo {
+  int64 id = 1;                // 主键ID
+  int64 userId = 2;            // 用户
+  UserType userType = 3;       // 用户类型 1 设备 2 账号
+  string area = 4;             // 指定地区
+  repeated string apis = 5;    // 指定接口
+  repeated string routers = 6; // 指定路由
+  Status status = 7;           // 状态
+  int64 createTime = 8;        // 创建时间
+  int64 updateTime = 9;        // 更新时间
 }
 
 // Account
@@ -226,7 +226,7 @@ message UserListReq {
   repeated string uuids = 5;        // 用户唯一ID
   repeated string deviceIds = 6;    // 设备ID (device 表的 id)
 }
-message UserListRes {
+message UserListResp {
   int64 total = 1;
   repeated UserVo list = 2;
 }
@@ -261,7 +261,7 @@ message UserCredentialListReq {
   UserCredentialVo vo = 2;
   repeated int64 excludeIds = 3; // 排除的ID
 }
-message UserCredentialListRes {
+message UserCredentialListResp {
   int64 total = 1;
   repeated UserCredentialVo list = 2;
 }
@@ -347,23 +347,23 @@ service GoUserClient {
   rpc UserTestList(UserTestListReq) returns (UserTestListResp);
 
   // User
-  rpc UserAdd(UserVo) returns (UserVo);
-  rpc UserUpdate(UserVo) returns (UserVo);
-  rpc UserDel(Ids) returns (Empty);
-  rpc UserGet(UserVo) returns (UserVo);
+  rpc UserAdd(UserAddReq) returns (UserAddResp);
+  rpc UserUpdate(UserUpdateReq) returns (UserUpdateResp);
+  rpc UserDel(UserDelReq) returns (Empty);
+  rpc UserGet(UserGetReq) returns (UserGetResp);
   rpc UserList(UserListReq) returns (UserListResp);
 
   // UserCredential
-  rpc UserCredentialAdd(UserCredentialVo) returns (UserCredentialVo);
-  rpc UserCredentialUpdate(UserCredentialVo) returns (UserCredentialVo);
-  rpc UserCredentialDel(Ids) returns (Empty);
-  rpc UserCredentialGet(UserCredentialVo) returns (UserCredentialVo);
+  rpc UserCredentialAdd(UserCredentialAddReq) returns (UserCredentialAddResp);
+  rpc UserCredentialUpdate(UserCredentialUpdateReq) returns (UserCredentialUpdateResp);
+  rpc UserCredentialDel(UserCredentialDelReq) returns (Empty);
+  rpc UserCredentialGet(UserCredentialGetReq) returns (UserCredentialGetResp);
   rpc UserCredentialList(UserCredentialListReq) returns (UserCredentialListResp);
 
   // UserDevice
-  rpc UserDeviceAdd(UserDeviceVo) returns (UserDeviceVo);
-  rpc UserDeviceUpdate(UserDeviceVo) returns (UserDeviceVo);
-  rpc UserDeviceDel(Ids) returns (Empty);
-  rpc UserDeviceGet(UserDeviceVo) returns (UserDeviceVo);
+  rpc UserDeviceAdd(UserDeviceAddReq) returns (UserDeviceAddResp);
+  rpc UserDeviceUpdate(UserDeviceUpdateReq) returns (UserDeviceUpdateResp);
+  rpc UserDeviceDel(UserDeviceDelReq) returns (Empty);
+  rpc UserDeviceGet(UserDeviceGetReq) returns (UserDeviceGetResp);
   rpc UserDeviceList(UserDeviceListReq) returns (UserDeviceListResp);
 }

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels