Merge branch '57-classes-creating' into 'dev'

Resolve "Создание классов для модуля Конференции"

Closes #57

See merge request romanov73/ng-tracker!42
This commit is contained in:
Anton Romanov 2019-04-03 04:03:46 +00:00
commit 54bbd2375d
7 changed files with 67 additions and 0 deletions

View File

@ -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;
}
}

View 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 {
}

View File

@ -0,0 +1,4 @@
package ru.ulstu.conference.model;
public class ConferenceDto {
}

View File

@ -0,0 +1,4 @@
package ru.ulstu.conference.model;
public class ConferenceFilterDto {
}

View File

@ -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> {
}

View File

@ -0,0 +1,7 @@
package ru.ulstu.conference.service;
import org.springframework.stereotype.Service;
@Service
public class ConferenceNotificationService {
}

View File

@ -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;
}
}