12345678910111213141516171819202122232425262728293031323334 |
- using Microsoft.AspNetCore.Mvc;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using XYY.Common.Standard;
- using static XYY.Common.Standard.QYWXAPI;
- namespace XYY.Api.WarningNotice.Controllers
- {
- [Route("[controller]/[action]")]
- [ApiController]
- public class QYWXAPIController : ControllerBase
- {
- public async Task<IActionResult> GetUserInfos()
- {
- QYWXAPI qYWXAPI = new QYWXAPI();
- var data = qYWXAPI.GetUserInfos();
- return Ok(data);
- }
- public async Task<IActionResult> GetCustomers(string userId)
- {
- QYWXAPI qYWXAPI = new QYWXAPI();
- var data = qYWXAPI.GetCustomers(userId);
- return Ok(data);
- }
- public IActionResult GetGroups(string userId)
- {
- QYWXAPI qYWXAPI = new QYWXAPI();
- var data = qYWXAPI.GetGroups(userId);
- return Ok(data);
- }
- }
- }
|