12345678910111213141516171819202122232425262728293031323334 |
- using Microsoft.AspNetCore.Authorization;
- using Microsoft.AspNetCore.Mvc;
- using SM.Core;
- using SM.Services;
- namespace SM.Web.Controllers
- {
- ///<summary>账号服务</summary>
- public class AccountController : WebController
- {
- private IAccountService _AccountService;
- public AccountController(IAccountService ia)
- {
- _AccountService = ia;
- }
- ///<summary>登录</summary>
- [HttpPost]
- [AllowAnonymous]
- public async Task<IResponseOutput> Login(Account_Login_Input input)
- {
- return await _AccountService.Login(input);
- }
- ///<summary>获取秘钥</summary>
- [HttpPost]
- [AllowAnonymous]
- public async Task<IResponseOutput> SecretKey(Account_SecretKey_Input input)
- {
- return await _AccountService.SecretKey(input);
- }
- }
- }
|