@@ -2,9 +2,9 @@ import { get, post, put, del } from './request'
22
33const api = {
44 /* 获取仓库版本列表 */
5- repoRelease : ( ) => get ( '/githubApi/repos/Longgererer/JS-Encoder/releases' ) ,
5+ repoRelease : ( ) => get ( '/githubApi/repos/Longgererer/JS-Encoder-Online /releases' ) ,
66 /* 获取仓库最高版本 */
7- repoLatestV : ( ) => get ( '/githubApi/repos/Longgererer/JS-Encoder/releases/latest' ) ,
7+ repoLatestV : ( ) => get ( '/githubApi/repos/Longgererer/JS-Encoder-Online /releases/latest' ) ,
88 /* cdn 列表 */
99 searchCDNList : ( params ) => get ( '/cdnJS' , params ) ,
1010
@@ -49,40 +49,40 @@ const api = {
4949 /* 发送反馈 */
5050 sendFeedback : ( params ) => post ( '/api/feedback/addFeedback' , params ) ,
5151
52- //!/ * 根据实例名或者标签查询实例 */
52+ /* 根据实例名或者标签查询实例 */
5353 searchWorksByContent : ( params ) => get ( '/api/query/queryExample' , params ) ,
5454
55- //!/ * 查询实例列表 */
55+ /* 查询实例列表 */
5656 searchWorks : ( params ) => get ( '/api/query/getExample' , params ) ,
57- //!/ * 查看喜爱实例列表 */
57+ /* 查看喜爱实例列表 */
5858 searchLiked : ( params ) => get ( '/api/query/getFavorites' , params ) ,
59- //!/ * 查询粉丝列表 */
60- searchFollowers : ( params ) => get ( '/api/search /getFan' , params ) ,
61- //!/ * 查询关注列表 */
62- searchFollowings : ( params ) => get ( '/api/search /getFollow' , params ) ,
63- //!/ * 查询回收站列表 */
64- searchCycleBin : ( params ) => { } ,
59+ /* 查询粉丝列表 */
60+ searchFollowers : ( params ) => get ( '/api/query /getFan' , params ) ,
61+ /* 查询关注列表 */
62+ searchFollowings : ( params ) => get ( '/api/query /getFollow' , params ) ,
63+ /* 查询回收站列表 */
64+ searchCycleBin : ( params ) => get ( '/api/query/getRecycle' , params ) ,
6565
66- //!/ * 添加关注 */
67- addFollow : ( params ) => put ( '/api/user/addFollow' , params ) ,
68- //!/ * 取消关注 */
69- delFollow : ( params ) => put ( '/api/user/cancelFollow' , params ) ,
66+ /* 添加关注 */
67+ addFollow : ( params ) => post ( '/api/user/addFollow' , params ) ,
68+ /* 取消关注 */
69+ delFollow : ( params ) => del ( '/api/user/cancelFollow' , params ) ,
7070
71- //!/ * 添加喜爱实例 */
71+ /* 添加喜爱实例 */
7272 addLikeWork : ( params ) => post ( '/api/example/addFavorites' , params ) ,
73- //!/ * 取消喜爱实例 */
73+ /* 取消喜爱实例 */
7474 delLikeWork : ( params ) => post ( '/api/example/cancelFavorites' , params ) ,
7575 /* 创建或保存实例 */
7676 saveWork : ( params ) => post ( '/api/example/createExample' , params ) ,
7777 /* 获取实例详情 */
7878 getWork : ( params ) => get ( '/api/content/getContent' , params ) ,
79- //!/ * 删除实例 */
79+ /* 删除实例 */
8080 delWork : ( params ) => del ( '/api/example/' , params ) ,
8181 /* 更新实例设置 */
8282 configWork : ( params ) => put ( '/api/example/' , params ) ,
83- //!/ * 永久删除实例 */
83+ /* 永久删除实例 */
8484 permanentDelWork : ( params ) => del ( '/api/example/delete' , params ) ,
85- //!/ * 恢复实例 */
85+ /* 恢复实例 */
8686 resumeDelWork : ( params ) => post ( '/api/example/resume' , params ) ,
8787}
8888
0 commit comments