using Microsoft.AspNetCore.Mvc; using New_College.IServices; using New_College.Model; using New_College.Model.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace New_College.Api.Controllers.Back { [Route("api/back/[controller]/[action]")] [ApiController] //[Authorize] public class CustomerController : ControllerBase { private readonly IV_CustomerInfoServices v_CustomerInfoServices; public CustomerController(IV_CustomerInfoServices IV_CustomerInfoServices) { v_CustomerInfoServices = IV_CustomerInfoServices; } /// /// 获取分页 /// /// /// [HttpGet] public async Task>> GetCustomerInfoListByPage([FromQuery] CustomerSeachQuery query) { return await v_CustomerInfoServices.GetCustomerInfoListByPage(query); } } }