fix: 移除未使用的代码
This commit is contained in:
@@ -1,11 +1,5 @@
|
|||||||
package com.lanyuanxiaoyao.service.template.controller.response;
|
package com.lanyuanxiaoyao.service.template.controller.response;
|
||||||
|
|
||||||
/**
|
|
||||||
* Crud 响应
|
|
||||||
*
|
|
||||||
* @author lanyuanxiaoyao
|
|
||||||
* @date 2023-07-06
|
|
||||||
*/
|
|
||||||
public class GlobalCrudResponse<T> extends GlobalMapResponse {
|
public class GlobalCrudResponse<T> extends GlobalMapResponse {
|
||||||
public void setData(Iterable<T> list) {
|
public void setData(Iterable<T> list) {
|
||||||
setData("items", list);
|
setData("items", list);
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
package com.lanyuanxiaoyao.service.template.controller.response;
|
package com.lanyuanxiaoyao.service.template.controller.response;
|
||||||
|
|
||||||
/**
|
|
||||||
* Crud 响应
|
|
||||||
*
|
|
||||||
* @author lanyuanxiaoyao
|
|
||||||
* @date 2023-07-06
|
|
||||||
*/
|
|
||||||
public class GlobalDetailResponse extends GlobalMapResponse {
|
public class GlobalDetailResponse extends GlobalMapResponse {
|
||||||
public void setDetail(Object detail) {
|
public void setDetail(Object detail) {
|
||||||
setData("detail", detail);
|
setData("detail", detail);
|
||||||
|
|||||||
@@ -3,12 +3,6 @@ package com.lanyuanxiaoyao.service.template.controller.response;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
|
||||||
* Map 响应
|
|
||||||
*
|
|
||||||
* @author lanyuanxiaoyao
|
|
||||||
* @date 2023-07-06
|
|
||||||
*/
|
|
||||||
public class GlobalMapResponse extends GlobalResponse<Map<String, Object>> {
|
public class GlobalMapResponse extends GlobalResponse<Map<String, Object>> {
|
||||||
public GlobalMapResponse() {
|
public GlobalMapResponse() {
|
||||||
setData(new HashMap<>());
|
setData(new HashMap<>());
|
||||||
|
|||||||
@@ -2,12 +2,6 @@ package com.lanyuanxiaoyao.service.template.controller.response;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
|
||||||
* Amis 组件结构化返回值
|
|
||||||
*
|
|
||||||
* @author lanyuanxiaoyao
|
|
||||||
* @date 2022-09-21
|
|
||||||
*/
|
|
||||||
public class GlobalResponse<T> {
|
public class GlobalResponse<T> {
|
||||||
private static final int SUCCESS_STATUS = 0;
|
private static final int SUCCESS_STATUS = 0;
|
||||||
private static final int ERROR_STATUS = 500;
|
private static final int ERROR_STATUS = 500;
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ import java.util.Optional;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author lanyuanxiaoyao
|
|
||||||
* @date 2024-11-28
|
|
||||||
*/
|
|
||||||
public interface SimpleService<ENTITY extends SimpleEntity> {
|
public interface SimpleService<ENTITY extends SimpleEntity> {
|
||||||
Long save(ENTITY entity) throws Exception;
|
Long save(ENTITY entity) throws Exception;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package com.lanyuanxiaoyao.service.template.service;
|
|||||||
|
|
||||||
import com.lanyuanxiaoyao.service.template.entity.Company;
|
import com.lanyuanxiaoyao.service.template.entity.Company;
|
||||||
import com.lanyuanxiaoyao.service.template.repository.CompanyRepository;
|
import com.lanyuanxiaoyao.service.template.repository.CompanyRepository;
|
||||||
import com.lanyuanxiaoyao.service.template.repository.SimpleRepository;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user