List.cs 885 B

1234567891011121314151617181920212223
  1. using Microsoft.AspNetCore.Mvc;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace economy.Models.Price.Domestic.Item.List
  4. {
  5. /*
  6. * 온라인 수집 가격 정보
  7. * 품목별 종류
  8. * 예시 ) https://apis.data.go.kr/1240000/bpp_openapi/getPriceItemList?ServiceKey=vQz8tIxrdhjerG6DE1w1hcVEli5S27LtIsCvx0axiieZmRgOpB4vToQ77VmvknAkIC9YjxlPx2gDZcl06S88Xw%3D%3D&pageNo=1&numOfRows=10
  9. */
  10. // 검색요청 변수
  11. public class Request
  12. {
  13. [BindProperty(Name = "page", SupportsGet = true)]
  14. [Range(1, int.MaxValue, ErrorMessage = "페이지 허용량을 초과하였습니다.")]
  15. public int PageNo { get; set; } = 1;
  16. [BindProperty(Name = "perPage", SupportsGet = true)]
  17. [Range(1, int.MaxValue, ErrorMessage = "출력 허용량을 초과하였습니다.")]
  18. public int NumOfRows { get; set; } = 10;
  19. }
  20. }