feat:增加patch姿势
This commit is contained in:
parent
f5116d677a
commit
873880036b
@ -0,0 +1,22 @@
|
||||
package com.flyfish.framework.domain.po;
|
||||
|
||||
import com.flyfish.framework.domain.base.AuditDomain;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* excel映射方案
|
||||
*
|
||||
* @author wangyu
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "excel-mappings")
|
||||
public class ExcelMapping extends AuditDomain {
|
||||
|
||||
// 映射关系
|
||||
private Map<String, String> content;
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.flyfish.framework.beans.excel;
|
||||
|
||||
|
||||
import com.flyfish.framework.controller.BaseController;
|
||||
import com.flyfish.framework.domain.base.NameLikeQo;
|
||||
import com.flyfish.framework.domain.po.ExcelMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* excel映射controller
|
||||
* @author wangyu
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/excel-mappings")
|
||||
public class ExcelMappingController extends BaseController<ExcelMapping, NameLikeQo<ExcelMapping>> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.flyfish.framework.beans.excel;
|
||||
|
||||
import com.flyfish.framework.domain.po.ExcelMapping;
|
||||
import com.flyfish.framework.repository.DefaultRepository;
|
||||
|
||||
/**
|
||||
* excel导入方案
|
||||
*
|
||||
* @author wangyu
|
||||
*/
|
||||
public interface ExcelMappingRepository extends DefaultRepository<ExcelMapping> {
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.flyfish.framework.beans.excel;
|
||||
|
||||
import com.flyfish.framework.domain.po.ExcelMapping;
|
||||
import com.flyfish.framework.service.impl.BaseServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ExcelMappingService extends BaseServiceImpl<ExcelMapping> {
|
||||
}
|
Loading…
Reference in New Issue
Block a user