CatchTheLettersBackend/src/main/java/com/example/catchTheLetters/entity/Level.java

46 lines
808 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.catchTheLetters.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 关卡类
*
* @author spyn
*/
@Data
public class Level implements Serializable {
/**
* 关卡ID
*/
private String id;
/**
* 关卡序号和id不一致是关卡在游戏中的顺序
*/
private Integer order;
/**
* 关卡名称
*/
private String name;
/**
* 关卡类型
* -0拼完题设单词
* -1达成目标分数
*/
private Integer type;
/**
* 限时(可选,毫秒数)
*/
private Long timeLimit;
/**
* 目标分数type=1时有效
*/
private Integer targetScore;
/**
* 单词列表
*/
private List<String> words;
}