QYWXAPIController.cs 951 B

12345678910111213141516171819202122232425262728293031323334
  1. using Microsoft.AspNetCore.Mvc;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using XYY.Common.Standard;
  5. using static XYY.Common.Standard.QYWXAPI;
  6. namespace XYY.Api.WarningNotice.Controllers
  7. {
  8. [Route("[controller]/[action]")]
  9. [ApiController]
  10. public class QYWXAPIController : ControllerBase
  11. {
  12. public async Task<IActionResult> GetUserInfos()
  13. {
  14. QYWXAPI qYWXAPI = new QYWXAPI();
  15. var data = qYWXAPI.GetUserInfos();
  16. return Ok(data);
  17. }
  18. public async Task<IActionResult> GetCustomers(string userId)
  19. {
  20. QYWXAPI qYWXAPI = new QYWXAPI();
  21. var data = qYWXAPI.GetCustomers(userId);
  22. return Ok(data);
  23. }
  24. public IActionResult GetGroups(string userId)
  25. {
  26. QYWXAPI qYWXAPI = new QYWXAPI();
  27. var data = qYWXAPI.GetGroups(userId);
  28. return Ok(data);
  29. }
  30. }
  31. }