feat: add CheckinRecord DTO classes
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.gym.manage.api.dto.request;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CheckinCreateRequest {
|
||||
@NotNull(message = "会员ID不能为空")
|
||||
private Long memberId;
|
||||
|
||||
@NotNull(message = "签到类型不能为空")
|
||||
private String checkinType;
|
||||
|
||||
private String deviceId;
|
||||
|
||||
private String deviceType;
|
||||
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.gym.manage.api.dto.response;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CheckinRecordResponse {
|
||||
private Long id;
|
||||
private Long memberId;
|
||||
private String checkinType;
|
||||
private LocalDateTime checkinTime;
|
||||
private LocalDateTime checkoutTime;
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private String status;
|
||||
private String remark;
|
||||
private LocalDateTime createdAt;
|
||||
}
|
||||
Reference in New Issue
Block a user