Commit 932182e8 by xxlv

Fix tpl

parent 13285fa5
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/quick_tpl.iml" filepath="$PROJECT_DIR$/.idea/quick_tpl.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
......@@ -6,5 +6,11 @@ import com.ydl.user.intf.po.${PLACE};
public interface ${PLACE}Biz extends IService<${PLACE}> {
/**
* Create ${PLACE} Resource
*
* @param ${PLACE_VAR}
* @return
*/
${PLACE} create${PLACE}(${PLACE} ${PLACE_VAR});
}
package com.ydl.user.intf.facade;
import com.github.pagehelper.PageInfo;
import com.ydl.common.dto.BaseDtoResponse;
import com.ydl.user.intf.dto.response.BooleanRespDto;
import com.ydl.user.intf.dto.response.ChatBlackRespDto;
import io.swagger.annotations.ApiOperation;
import com.ydl.user.intf.dto.request.{PLACE}ReqDto;
import com.ydl.user.intf.dto.response.{PLACE}RespDto;
public interface ${PLACE}Facade {
BaseDtoResponse<${PLACE}RespDto> create${PLACE}(${PLACE}ReqDto ${PLACE_VAR}ReqDto);
}
......@@ -16,4 +16,17 @@ public class ${PLACE}FacadeImpl implements ${PLACE}Facade {
private ${PLACE}Biz ${PLACE_VAR}Biz;
@Override
public BaseDtoResponse<${PLACE}RespDto> create${PLACE}(${PLACE}ReqDto ${PLACE_VAR}ReqDto) {
${PLACE} ${PLACE_VAR}=ModelMapperUtil.strictMap(${PLACE_VAR}ReqDto,${PLACE}.class);
${PLACE} ${PLACE_VAR}Stored=${PLACE_VAR}Biz.create${PLACE}(${PLACE_VAR});
${PLACE}RespDto ${PLACE_VAR}RespDto=ModelMapperUtil.strictMap(${PLACE_VAR}Stored,${PLACE}RespDto.class);
return ResponseFormatterHelper.success(${PLACE_VAR}RespDto);
}
}
package com.ydl.user.service.facade;
import com.ydl.common.dto.BaseDtoResponse;
import com.ydl.common.helper.ResponseFormatterHelper;
import com.ydl.common.utils.ModelMapperUtil;
import com.ydl.user.intf.facade.DemoFacade;
import com.ydl.user.service.biz.DemoBiz;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class DemoFacadeImpl implements DemoFacade {
@Resource
private DemoBiz demoBiz;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment