TestController.cs 792 B

12345678910111213141516171819202122232425262728
  1. using Microsoft.AspNetCore.Mvc;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using XYY.Core.Standard.Mvc;
  7. using XYY.Service.Standard.Finance;
  8. namespace XYY.Api.Finance.Controllers
  9. {
  10. [Route("api/[controller]/[action]")]
  11. [ApiController]
  12. public class TestController : ApiControllerBase
  13. {
  14. IDingDingBaseService _dingDingBaseService;
  15. public TestController(IDingDingBaseService dingDingBaseService)
  16. {
  17. _dingDingBaseService = dingDingBaseService;
  18. }
  19. [HttpGet]
  20. public async Task<IActionResult> GetDingDingUserInfo(int userId)
  21. {
  22. var userInfo = await _dingDingBaseService.GetDingDingUserInfo(userId);
  23. return Ok(userInfo);
  24. }
  25. }
  26. }