Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/iemr/common/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@Configuration
public class CorsConfig implements WebMvcConfigurer {

@Value("${cors.allowed-origin}")
@Value("${cors.allowed-origins}")
private String allowedOrigins;
@Override
public void addCorsMappings(CorsRegistry registry) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.controller;
package com.iemr.common.controller.platform_feedback;

import com.iemr.common.dto.*;
import com.iemr.common.service.PlatformFeedbackService;
import com.iemr.common.dto.platform_feedback.CategoryResponse;
import com.iemr.common.dto.platform_feedback.FeedbackRequest;
import com.iemr.common.dto.platform_feedback.FeedbackResponse;
import com.iemr.common.service.platform_feedback.PlatformFeedbackService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.model;
package com.iemr.common.data.platform_feedback;

import jakarta.persistence.*;
import jakarta.validation.constraints.Max;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.model;
package com.iemr.common.data.platform_feedback;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.dto;
package com.iemr.common.dto.platform_feedback;

public record CategoryResponse(String categoryId, String slug, String label, String scope, boolean active) {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.dto;
package com.iemr.common.dto.platform_feedback;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import java.time.LocalDateTime;

public record FeedbackRequest(
@Min(1) @Max(5) int rating,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.dto;
package com.iemr.common.dto.platform_feedback;
import java.time.LocalDateTime;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
*/
package com.iemr.common.repository.platform_feedback;

import com.iemr.common.model.FeedbackCategory;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.iemr.common.data.platform_feedback.FeedbackCategory;

@Repository
public interface PlatformFeedbackCategoryRepository extends JpaRepository<FeedbackCategory, String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
package com.iemr.common.repository.platform_feedback;

import com.iemr.common.model.Feedback;
import com.iemr.common.data.platform_feedback.Feedback;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.service;
package com.iemr.common.service.platform_feedback;

import com.iemr.common.dto.*;
import com.iemr.common.model.Feedback;
import com.iemr.common.model.FeedbackCategory;
import com.iemr.common.data.platform_feedback.Feedback;
import com.iemr.common.data.platform_feedback.FeedbackCategory;
import com.iemr.common.dto.platform_feedback.CategoryResponse;
import com.iemr.common.dto.platform_feedback.FeedbackRequest;
import com.iemr.common.dto.platform_feedback.FeedbackResponse;
import com.iemr.common.repository.platform_feedback.PlatformFeedbackCategoryRepository;
import com.iemr.common.repository.platform_feedback.PlatformFeedbackRepository;
import com.iemr.common.exception.BadRequestException;
Expand Down
Loading