C# Class BeiDream.Demo.Service.Users.UserService

用户应用服务
Inheritance: ServiceBase, IUserService
Show file Open project: BeiMeng/BeiDream

Public Methods

Method Description
AddorUpdate ( UserDto dto ) : void
Delete ( System.Guid id ) : void
Login ( LoginInfoInput loginInfoInput ) : UserDto
SetRoles ( System.Guid userId, List roleIds ) : void
UserService ( IUserDomainService userDomainService, IUserRepository userRepository, IProductRepository productRepository ) : System

Private Methods

Method Description
Find ( System.Guid id ) : UserDto
GetQueryConditions ( IQueryable queryable, BeiDream.Demo.Domain.Queries.UserQuery query ) : IQueryable

构造前台传递的查询条件

Query ( BeiDream.Demo.Domain.Queries.UserQuery query ) : PagerList

Method Details

AddorUpdate() public method

public AddorUpdate ( UserDto dto ) : void
dto BeiDream.Demo.Service.Users.Dtos.UserDto
return void

Delete() public method

public Delete ( System.Guid id ) : void
id System.Guid
return void

Login() public method

public Login ( LoginInfoInput loginInfoInput ) : UserDto
loginInfoInput LoginInfoInput
return BeiDream.Demo.Service.Users.Dtos.UserDto

SetRoles() public method

public SetRoles ( System.Guid userId, List roleIds ) : void
userId System.Guid
roleIds List
return void

UserService() public method

public UserService ( IUserDomainService userDomainService, IUserRepository userRepository, IProductRepository productRepository ) : System
userDomainService IUserDomainService
userRepository IUserRepository
productRepository IProductRepository
return System