mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 19:54:00 +09:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1,5 +1,44 @@
|
||||
package com.no1.wms.category;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
@Controller
|
||||
public class CategoryController {
|
||||
|
||||
|
||||
|
||||
// 카테고리 리스트 출력
|
||||
@GetMapping("/list")
|
||||
public String list() {
|
||||
// 서비스로 카테고리 목록 불러오는 메서드 작성
|
||||
return "category/list";
|
||||
}
|
||||
|
||||
// 상세페이지
|
||||
@PostMapping("/read/{kan_code}")
|
||||
public String read(@PathVariable UUID kan_code) {
|
||||
// 선택한 kan_code를 바탕으로 원하는 상세정보 출력하는 메서드 작성
|
||||
return "category/read";
|
||||
}
|
||||
|
||||
// 생성
|
||||
@GetMapping("/create")
|
||||
public String createform() {
|
||||
return "category/create";
|
||||
}
|
||||
|
||||
@PostMapping("/create")
|
||||
public void create(CategoryDto dto) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
17
src/main/java/com/no1/wms/category/CategoryDto.java
Normal file
17
src/main/java/com/no1/wms/category/CategoryDto.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.no1.wms.category;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CategoryDto {
|
||||
|
||||
private UUID kan_code;
|
||||
private String cls_nm_1;
|
||||
private String cls_nm_2;
|
||||
private String cls_nm_3;
|
||||
private String cls_nm_4;
|
||||
private boolean activation;
|
||||
|
||||
}
|
||||
8
src/main/java/com/no1/wms/category/CategoryMapper.java
Normal file
8
src/main/java/com/no1/wms/category/CategoryMapper.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package com.no1.wms.category;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface CategoryMapper {
|
||||
|
||||
}
|
||||
8
src/main/java/com/no1/wms/category/CategoryService.java
Normal file
8
src/main/java/com/no1/wms/category/CategoryService.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package com.no1.wms.category;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class CategoryService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user