12 lines
260 B
Dart
12 lines
260 B
Dart
enum BedStatus {
|
|
using(0, "使用中"), //使用中
|
|
no_using(1, "未使用"); //未使用
|
|
|
|
// 枚举的值
|
|
final int code; // 整数值
|
|
final String description; // 字符串描述
|
|
|
|
// 构造函数
|
|
const BedStatus(this.code, this.description);
|
|
}
|