Merge branch '57-classes-creating' into 'dev'
Resolve "Создание классов для модуля Конференции" Closes #57 See merge request romanov73/ng-tracker!42
This commit is contained in:
commit
54bbd2375d
@ -0,0 +1,19 @@
|
||||
package ru.ulstu.conference.controller;
|
||||
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import ru.ulstu.conference.service.ConferenceService;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
@Controller()
|
||||
@RequestMapping(value = "/conferences")
|
||||
@ApiIgnore
|
||||
public class ConferenceController {
|
||||
|
||||
private final ConferenceService conferenceService;
|
||||
|
||||
public ConferenceController(ConferenceService paperService) {
|
||||
this.conferenceService = paperService;
|
||||
}
|
||||
}
|
9
src/main/java/ru/ulstu/conference/model/Conference.java
Normal file
9
src/main/java/ru/ulstu/conference/model/Conference.java
Normal file
@ -0,0 +1,9 @@
|
||||
package ru.ulstu.conference.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "conference")
|
||||
public class Conference {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package ru.ulstu.conference.model;
|
||||
|
||||
public class ConferenceDto {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package ru.ulstu.conference.model;
|
||||
|
||||
public class ConferenceFilterDto {
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package ru.ulstu.conference.repository;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import ru.ulstu.conference.model.Conference;
|
||||
|
||||
public interface ConferenceRepository extends JpaRepository<Conference, Integer> {
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package ru.ulstu.conference.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ConferenceNotificationService {
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package ru.ulstu.conference.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import ru.ulstu.conference.repository.ConferenceRepository;
|
||||
import ru.ulstu.deadline.service.DeadlineService;
|
||||
|
||||
@Service
|
||||
public class ConferenceService {
|
||||
private final ConferenceRepository conferenceRepository;
|
||||
private final DeadlineService deadlineService;
|
||||
|
||||
public ConferenceService(ConferenceRepository conferenceRepository,
|
||||
DeadlineService deadlineService) {
|
||||
this.conferenceRepository = conferenceRepository;
|
||||
this.deadlineService = deadlineService;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user