34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
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;
|
|
}
|
|
/// <summary>
|
|
/// 获取分页
|
|
/// </summary>
|
|
/// <param name="query"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public async Task<MessageModel<PageModel<CustomerInfoListResult>>> GetCustomerInfoListByPage([FromQuery] CustomerSeachQuery query)
|
|
{
|
|
return await v_CustomerInfoServices.GetCustomerInfoListByPage(query);
|
|
}
|
|
}
|
|
}
|