48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
package nlib.sample.service.impl;
|
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import nlib.restful.DataApi;
|
|
import nlib.restful.service.DataApiReqVO;
|
|
import nlib.restful.service.DataApiResVO;
|
|
|
|
/**
|
|
* <pre>
|
|
* @Class Name : SampleDataApiDAO.java
|
|
*
|
|
* @Description : RESTful API 호출 샘플
|
|
*
|
|
*
|
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
*
|
|
* </pre>
|
|
*
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 수정일 수정자 수정내용
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 2021. 6. 22. KNKIM 최초 생성
|
|
*
|
|
*
|
|
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
* @since 2021. 6. 22.
|
|
* @version 1.0
|
|
*
|
|
*/
|
|
@Repository("sampleDataApiDAO")
|
|
public class SampleDataApiDAO extends DataApi {
|
|
|
|
/**
|
|
* 주 자원의 URI
|
|
*/
|
|
public static final String RESOURCE_URI = "/uac/service/exports";
|
|
|
|
public DataApiResVO getSampleInfo(DataApiReqVO reqVO) throws Exception {
|
|
|
|
// URI가 다른 경우, 해당 URI 설정
|
|
reqVO.setReqUrl(RESOURCE_URI);
|
|
|
|
return get(reqVO);
|
|
}
|
|
|
|
}
|