| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import microRequest from '../../utils/micro_request';
- import specialRequest from '../../utils/special_request';
- const sciPath = import.meta.env.VITE_SCIENTIFIC;
- export function useAchievementApi() {
- return {
- // 专利
- getPatentList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchieve', 'GetPatentList', query);
- },
- // 软著
- getSoftwareList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchievementSoftware', 'GetSoftwareList', query);
- },
- // 其他成果
- getOtherList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchievementOther', 'GetOtherList', query);
- },
- // 标准
- getStandardList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchievementStandard', 'GetList', query);
- },
- // 决策咨询
- getDecisionList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchievementDecision', 'GetList', query);
- },
- // 学术著作
- getWorkList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchieve', 'GetWorkList', query);
- },
- // 奖项荣誉
- getAwardsList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchieve', 'GetAwardsList', query);
- },
- // 学术论文
- getPaperList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciAchieve', 'GetPaperList', query);
- },
- // 学术会议
- getConferenceList: (query?: object) => {
- return microRequest.postRequest(sciPath, 'SciConference', 'GetList', query);
- },
- // 科技专项活动
- getSpecialActivityList: (params?: any) => {
- return specialRequest.get('/cxy/technology/special/activity/list', { params });
- },
- // 科技专项活动详情
- getSpecialActivityDetail: (id: string | number) => {
- return specialRequest.get(`/cxy/technology/special/activity/${id}`);
- },
- // 获取外部科研字典
- getDictData: (dictType: string) => {
- return specialRequest.get('/cxy/dict/data/list', { params: { dictType } });
- },
- // 免登录获取SCITOKEN
- getSciToken: (userId: string | number):Promise<any> => {
- return specialRequest.post('/lams/avoid/login', { userId, code: 'dshc-cq-ky' });
- },
- };
- }
|