Skip to content

Commit

Permalink
feat: add entity
Browse files Browse the repository at this point in the history
  • Loading branch information
杨宇豪 committed Jul 27, 2024
1 parent 70271a0 commit eeb9dd7
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class SlideController {

@GetMapping("/event/list")
public List<V1.Slide> event(@RequestParam Integer eventId) {

return List.of();
}

Expand Down
6 changes: 2 additions & 4 deletions src/main/java/fun/sast/evento/lark/api/v1/value/V1.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ record Event(
String description,
Date gmtEventStart,
Date gmtEventEnd,
Date gmtRegistrationStart,
Date gmtRegistrationEnd,
Date gmtRegistrationStart,//报名
Date gmtRegistrationEnd,//
EventType eventType,
Integer typeId,
String location,
Integer locationId,
String tag,
Integer state,//1:未开始,2:报名中,3:进行中,4:已取消,5:已结束
List<Department> departments
Expand Down
20 changes: 16 additions & 4 deletions src/main/java/fun/sast/evento/lark/domain/event/entity/Event.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
package fun.sast.evento.lark.domain.event.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
*
*/
@Data
@TableName("event")
public class Event {
@TableId(value = "id")
private String id;
@TableId(value = "id",type = IdType.ASSIGN_ID)
private Long id;
private String summary;
private String description;

private LocalDateTime start;
private LocalDateTime end;
private Location location;
private EventDetail detail;
private String location;
private String tag;
private String attachmentUrl;
private Long like;
private Long disLike;
private String larkEventUid;
private String larkMeetingRoomId;
private String larkMeetingRoomName;
private String larkDepartment;
}
//实体类,和其他模块有关联,有影响的部分

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package fun.sast.evento.lark.domain.event.entity;

public class Feedback {
private Long id;
private Long linkId;
private Long eventId;
private String feedback;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package fun.sast.evento.lark.domain.event.entity;

public class Participation {
private Long id;
private Long linkId;
private Long eventId;
private Boolean isSubscribed;
private Boolean isCheckIn;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package fun.sast.evento.lark.domain.event.entity;

public class Slide {
private Long id;
private String eventId;
private String url;
private String link;
}

This file was deleted.

This file was deleted.

0 comments on commit eeb9dd7

Please sign in to comment.