1
0

fix: 移除未使用的代码

This commit is contained in:
2025-08-14 19:08:08 +08:00
parent 89cdecef3d
commit 84d9b63707
6 changed files with 0 additions and 29 deletions

View File

@@ -1,11 +1,5 @@
package com.lanyuanxiaoyao.service.template.controller.response;
/**
* Crud 响应
*
* @author lanyuanxiaoyao
* @date 2023-07-06
*/
public class GlobalCrudResponse<T> extends GlobalMapResponse {
public void setData(Iterable<T> list) {
setData("items", list);

View File

@@ -1,11 +1,5 @@
package com.lanyuanxiaoyao.service.template.controller.response;
/**
* Crud 响应
*
* @author lanyuanxiaoyao
* @date 2023-07-06
*/
public class GlobalDetailResponse extends GlobalMapResponse {
public void setDetail(Object detail) {
setData("detail", detail);

View File

@@ -3,12 +3,6 @@ package com.lanyuanxiaoyao.service.template.controller.response;
import java.util.HashMap;
import java.util.Map;
/**
* Map 响应
*
* @author lanyuanxiaoyao
* @date 2023-07-06
*/
public class GlobalMapResponse extends GlobalResponse<Map<String, Object>> {
public GlobalMapResponse() {
setData(new HashMap<>());

View File

@@ -2,12 +2,6 @@ package com.lanyuanxiaoyao.service.template.controller.response;
import java.util.Map;
/**
* Amis 组件结构化返回值
*
* @author lanyuanxiaoyao
* @date 2022-09-21
*/
public class GlobalResponse<T> {
private static final int SUCCESS_STATUS = 0;
private static final int ERROR_STATUS = 500;

View File

@@ -7,10 +7,6 @@ import java.util.Optional;
import java.util.Set;
import org.springframework.data.domain.Page;
/**
* @author lanyuanxiaoyao
* @date 2024-11-28
*/
public interface SimpleService<ENTITY extends SimpleEntity> {
Long save(ENTITY entity) throws Exception;

View File

@@ -2,7 +2,6 @@ package com.lanyuanxiaoyao.service.template.service;
import com.lanyuanxiaoyao.service.template.entity.Company;
import com.lanyuanxiaoyao.service.template.repository.CompanyRepository;
import com.lanyuanxiaoyao.service.template.repository.SimpleRepository;
import org.springframework.stereotype.Service;
/**