C# Class esdk_fc_v1r5_native_cs.ClientResource.UserResource

用户资源接口
ファイルを表示 Open project: eSDK/esdk_fc_v1r5_native_cs Class Usage Examples

Public Methods

Method Description
AddRole ( AddRoleReq req ) : SDKCommonResp

添加角色

AddUser ( AddUserReq req ) : UserTaskResp

添加用户

GetInstance ( ClientProviderBean bean ) : UserResource

获取用户接口实例

ListRights ( int rightType ) : ListRightsResp

查询权限列表

ListRoles ( int limit, int offset ) : ListRolesResp

查询角色信息

ListUsers ( ListUsersReq req ) : ListUsersResp

批量查询用户

ModifyPassword ( ModifyPasswordReq req ) : SDKCommonResp

修改用户密码

ModifyRole ( ModifyRoleReq req ) : SDKCommonResp

修改角色信息

ModifyUser ( string userId, ModifyUserReq req ) : UserTaskResp

修改用户

RemoveRole ( string roleName ) : SDKCommonResp

删除角色

RemoveUser ( string userId ) : SDKCommonResp

删除用户

ResetPassword ( ResetPasswordReq req ) : SDKCommonResp

重置用户密码

SetUserRoles ( string userId, SetUserRolesReq req ) : SDKCommonResp

设置用户角色。注:该接口仅在账户安全类型为高安全模式下使用,该参数在环境搭建时可选择。

Private Methods

Method Description
UserResource ( ) : System
init ( ClientProviderBean arg ) : void

Method Details

AddRole() public method

添加角色
public AddRole ( AddRoleReq req ) : SDKCommonResp
req esdk_fc_v1r5_native_cs.DataType.UserModel.AddRoleReq 【必选】待添加角色的相关参数
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp

AddUser() public method

添加用户
public AddUser ( AddUserReq req ) : UserTaskResp
req esdk_fc_v1r5_native_cs.DataType.UserModel.AddUserReq 【必选】待添加的用户
return esdk_fc_v1r5_native_cs.DataType.UserModel.UserTaskResp

GetInstance() public static method

获取用户接口实例
public static GetInstance ( ClientProviderBean bean ) : UserResource
bean esdk_fc_v1r5_native_cs.DataType.ClientProviderBean 服务器相关参数
return UserResource

ListRights() public method

查询权限列表
public ListRights ( int rightType ) : ListRightsResp
rightType int 【可选】权限类型,1:查询所有权限(默认),2:系统管理员类权限(高安全模式),3:安全管理员类权限(高安全模式),4:安全审计员类权限(高安全模式)
return ListRightsResp

ListRoles() public method

查询角色信息
public ListRoles ( int limit, int offset ) : ListRolesResp
limit int 【必选】每页限制数
offset int 【必选】起始偏移量
return esdk_fc_v1r5_native_cs.DataType.UserModel.ListRolesResp

ListUsers() public method

批量查询用户
public ListUsers ( ListUsersReq req ) : ListUsersResp
req esdk_fc_v1r5_native_cs.DataType.UserModel.ListUsersReq 【必选】查询条件
return esdk_fc_v1r5_native_cs.DataType.UserModel.ListUsersResp

ModifyPassword() public method

修改用户密码
public ModifyPassword ( ModifyPasswordReq req ) : SDKCommonResp
req esdk_fc_v1r5_native_cs.DataType.UserModel.ModifyPasswordReq 【必选】待修改的参数
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp

ModifyRole() public method

修改角色信息
public ModifyRole ( ModifyRoleReq req ) : SDKCommonResp
req esdk_fc_v1r5_native_cs.DataType.UserModel.ModifyRoleReq 【必选】修改角色信息相关参数
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp

ModifyUser() public method

修改用户
public ModifyUser ( string userId, ModifyUserReq req ) : UserTaskResp
userId string 【必选】用户ID
req esdk_fc_v1r5_native_cs.DataType.UserModel.ModifyUserReq 【必选】修改用户的参数
return esdk_fc_v1r5_native_cs.DataType.UserModel.UserTaskResp

RemoveRole() public method

删除角色
public RemoveRole ( string roleName ) : SDKCommonResp
roleName string 【必选】角色名称
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp

RemoveUser() public method

删除用户
public RemoveUser ( string userId ) : SDKCommonResp
userId string 【必选】用户ID
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp

ResetPassword() public method

重置用户密码
public ResetPassword ( ResetPasswordReq req ) : SDKCommonResp
req esdk_fc_v1r5_native_cs.DataType.UserModel.ResetPasswordReq 【必选】重置用户密码相关参数
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp

SetUserRoles() public method

设置用户角色。注:该接口仅在账户安全类型为高安全模式下使用,该参数在环境搭建时可选择。
public SetUserRoles ( string userId, SetUserRolesReq req ) : SDKCommonResp
userId string 【必选】用户ID
req esdk_fc_v1r5_native_cs.DataType.UserModel.SetUserRolesReq 【必选】需要设置的角色相关参数
return esdk_fc_v1r5_native_cs.DataType.SDKCommonResp