移植原始版本
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.yutou.nas.utils.Interfaces;
|
||||
|
||||
|
||||
import com.yutou.nas.mybatis.model.MusicData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IMusicToolsService {
|
||||
void init();
|
||||
|
||||
void scanMusic();
|
||||
|
||||
List<MusicData> getPath(String path, boolean isDir);
|
||||
|
||||
MusicData getMusicData(String md5);
|
||||
|
||||
List<MusicData> findOfTitle(String title);
|
||||
|
||||
List<MusicData> findOfArtist(String by);
|
||||
|
||||
List<MusicData> getMusicList();
|
||||
|
||||
int getLength();
|
||||
|
||||
boolean isScan();
|
||||
|
||||
String getMusicPath();
|
||||
|
||||
byte[] readImage(String path) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.yutou.nas.utils.Interfaces;
|
||||
|
||||
public interface NetworkInterface {
|
||||
/**
|
||||
* 请求成功
|
||||
* @param data 请求参数
|
||||
* @param state http状态
|
||||
*/
|
||||
void httpGetData(Object data, int state);
|
||||
|
||||
/**
|
||||
* 请求异常
|
||||
* @param e 异常
|
||||
*/
|
||||
void httpError(Exception e);
|
||||
}
|
||||
Reference in New Issue
Block a user