From f840db633076f8bb172beee5f0f8cab2d76ee23a Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 18 Apr 2022 18:21:50 +0800 Subject: ... --- .../Services/User/RegisterCode/IRegisterCodeService.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'BackEnd/Timeline/Services/User/RegisterCode/IRegisterCodeService.cs') diff --git a/BackEnd/Timeline/Services/User/RegisterCode/IRegisterCodeService.cs b/BackEnd/Timeline/Services/User/RegisterCode/IRegisterCodeService.cs index 65decefc..e0031a38 100644 --- a/BackEnd/Timeline/Services/User/RegisterCode/IRegisterCodeService.cs +++ b/BackEnd/Timeline/Services/User/RegisterCode/IRegisterCodeService.cs @@ -13,44 +13,43 @@ namespace Timeline.Services.User.RegisterCode /// The register code. /// If true, only when code is enabled the owner id is returned. /// A task contains the owner of the register code. Null of the code does not exist or is not enabled. - Task GetCodeOwner(string code, bool onlyEnabled = true); + Task GetCodeOwnerAsync(string code, bool onlyEnabled = true); /// /// Get the current enabled register code of the user or null if there is none. /// /// The user id. /// A task contains current enabled register code or null if there is none. - Task GetCurrentCode(long userId); + Task GetCurrentCodeAsync(long userId); /// /// Create a new register code for a user, enable it and disable the previous one if there is a previous one. /// /// The user id. /// A task contains the new register code. - Task CreateNewCode(long userId); + Task CreateNewCodeAsync(long userId); /// /// Record a register info for a user. /// /// The newly-registered user. - /// The introducer user id. /// The register code. /// The register time. /// The created register info. - Task CreateRegisterInfo(long userId, long introducerId, string registerCode, DateTime registerTime); + Task CreateRegisterInfoAsync(long userId, string registerCode, DateTime registerTime); /// /// Get register info of a user if there is one. /// /// The user id. /// The user register info if there is one. Or null if there is not. - Task GetUserRegisterInfo(long userId); + Task GetUserRegisterInfoAsync(long userId); /// /// Get the list of user register info of the specified introducer. /// /// /// The list of user register info. - Task> GetUserRegisterInfoOfIntroducer(long introducerId); + Task> GetUserRegisterInfoOfIntroducerAsync(long introducerId); } } -- cgit v1.2.3