提交 2d7d9bbd authored 作者: lizhuo's avatar lizhuo

--no commit message

上级 a1353455
package com.zrqx.file.client;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import com.zrqx.core.constant.resource.ResourceRequestPath;
import com.zrqx.core.model.resource.ebook.Book;
import com.zrqx.core.util.response.CallBack;
/**
......@@ -54,4 +57,8 @@ public interface ResourceClient {
*/
@PostMapping(ResourceRequestPath.FG + ResourceRequestPath.AUDIO_LIBRARY + ResourceRequestPath.UPDATE + ResourceRequestPath.AUDIO_LIBRARY)
CallBack<Boolean> updateAudioClickNum(@RequestBody String fileName);
/** 查找用户,用户所属部门,用户角色*/
@GetMapping(ResourceRequestPath.BG + ResourceRequestPath.EBOOK + ResourceRequestPath.ISBNONE)
CallBack<Book> getOneByIsbn(@RequestParam("isbn") String isbn);
}
......@@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import com.zrqx.core.form.GoodsForm;
import com.zrqx.core.model.resource.ebook.Book;
import com.zrqx.core.util.response.CallBack;
@Component
......@@ -39,4 +40,10 @@ public class ResourceClientHystric implements ResourceClient {
return CallBack.fail();
}
@Override
public CallBack<Book> getOneByIsbn(String isbn) {
return CallBack.fail();
}
}
package com.zrqx.file.config;
public class FTPConfig {
//public static String ip = "192.168.2.234";
public static String ip = "192.168.0.208";
public static Integer port = 21;
//public static String username = "lizhuo";
public static String username = "hxcbs";
//public static String password = "111111";
public static String password = "11111111";
}
......@@ -25,3 +25,6 @@
file-root-path=/opt/upload/zzfszzy/
ftp-root-path =/home/lizhuo/
ftp-down-path =download/
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论