add CategoryMapper

This commit is contained in:
Kana
2024-01-02 17:49:40 +09:00
parent 8b9c95efad
commit bb140d398e
4 changed files with 72 additions and 0 deletions

View File

@@ -1,5 +1,44 @@
package com.no1.wms.category; 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 { 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) {
}
} }

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

View File

@@ -0,0 +1,8 @@
package com.no1.wms.category;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CategoryMapper {
}

View File

@@ -0,0 +1,8 @@
package com.no1.wms.category;
import org.springframework.stereotype.Service;
@Service
public class CategoryService {
}