feat:增加patch姿势

This commit is contained in:
wangyu 2021-10-23 08:54:22 +08:00
parent f5116d677a
commit 873880036b
4 changed files with 61 additions and 0 deletions

View File

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

View File

@ -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>> {
}

View File

@ -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> {
}

View File

@ -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> {
}