2024-04-10 12:55:50 +00:00
|
|
|
package com.example.catchTheLetters.service;
|
|
|
|
|
2024-04-10 16:05:24 +00:00
|
|
|
import com.example.catchTheLetters.entity.Level;
|
2024-04-11 15:13:12 +00:00
|
|
|
import com.example.catchTheLetters.entity.ScoreInfo;
|
2024-04-10 16:05:24 +00:00
|
|
|
import com.example.catchTheLetters.utils.R;
|
|
|
|
import java.util.List;
|
|
|
|
|
2024-04-10 12:55:50 +00:00
|
|
|
/**
|
|
|
|
* @author 慕华
|
|
|
|
* @date 2024/4/10
|
|
|
|
* @Version 1.0
|
|
|
|
* @description
|
|
|
|
*/
|
|
|
|
public interface LevelService {
|
2024-04-12 00:56:48 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param id
|
|
|
|
* @return token
|
|
|
|
*/
|
|
|
|
|
2024-04-10 16:05:24 +00:00
|
|
|
|
|
|
|
R<Level> levelDetail(Long id);
|
|
|
|
|
2024-04-12 00:56:48 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @return token
|
|
|
|
*/
|
2024-04-10 16:05:24 +00:00
|
|
|
R<List<Level>> list();
|
2024-04-11 15:13:12 +00:00
|
|
|
|
|
|
|
R<ScoreInfo> settle(ScoreInfo scoreInfo, String token);
|
2024-04-12 01:26:09 +00:00
|
|
|
|
2024-04-12 00:56:48 +00:00
|
|
|
/**
|
|
|
|
* @param levelId
|
|
|
|
* @return 关卡排行信息
|
|
|
|
*/
|
|
|
|
Integer getRankInfo(String levelId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param level
|
|
|
|
* @return 关卡创建是否成功
|
|
|
|
*/
|
|
|
|
boolean LevelCreate(Level level);
|
|
|
|
|
2024-04-10 12:55:50 +00:00
|
|
|
}
|