提交 6e9743d4 编写于 作者: sq3536's avatar sq3536

minicode

上级 09c27d79
......@@ -214,4 +214,36 @@ public class AppModel extends BaseModel{
return dictMaps;
}
public Map<String,String> getExModel()
{
Map<String,String> map=new LinkedHashMap<>();
map.put("TySlKg","控告类信访");
map.put("TySlXsss","刑事申诉类信访");
map.put("TySlSfjz","国家司法救助类信访");
map.put("TySlGjpc","国家赔偿类信访");
map.put("TySlMsss","民事申诉类信访");
map.put("TySlXzss","行政申诉类信访");
map.put("TySlQt","其他类信访");
map.put("TyHfdf","回复答复");
map.put("TyCff","重复访");
map.put("TyQtXfr","其他信访人");
map.put("TyQtBXfr","其他被信访人");
map.put("TyLscydl","律师参与代理");
map.put("TyYcspyy","远程视频预约");
map.put("TyZdxf","重大信访");
map.put("TyFxpg","风险评估");
map.put("TyMydpj","满意度评价");
map.put("TyFqtb","访情通报");
map.put("TyGyss","公益诉讼");
map.put("TyWcnrbh","未成年人保护");
map.put("TyGktz","公开听证");
map.put("TyZyhy","重要会议");
map.put("TyTzgg","通知公告");
map.put("TyGfxwj","规范性文件");
map.put("TyJypx","教育培训");
map.put("TyJyfx","经验分享");
return map;
}
}
{{#eq apps "link"}}
package {{packageName}}.api.{{apps}}.rest;
import cn.ibizlab.edge.api.link.annotation.G1;
import cn.ibizlab.edge.api.link.dto.TyywKgXfjsdj.SubDfUpdateDto;
import cn.ibizlab.edge.api.link.dto.ex.*;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@Slf4j
@Api( tags = "资源目录")
@RestController("link-g1res")
@RequestMapping("/link/g1")
@G1
@ApiSort(1)
@ApiSupport(order = 1)
public class G1ResResource {
{{#each app.exModel as |item|}}
@ApiOperationSupport(order = 1{{@index}})
@ApiOperation(value = "{{item}}", tags = {"资源目录" }, notes = "topic主题:TOPIC_WSXF_RESOURCE_{{upperCase @key}}")
@RequestMapping(method = RequestMethod.GET, value = "/mq/topic/TOPIC_WSXF_RESOURCE_{{upperCase @key}}/pullconsumer")
public ResponseEntity<List<{{@key}}Dto>> pull{{@key}}(@ApiParam("oauth2第三方接入token") @RequestHeader("Access-Token") String accessToken,
@ApiParam(value = "偏移量,不提供或0时默认计算",example = "0") @RequestParam(value = "offset",required = false,defaultValue = "0") Long offset,
@ApiParam(value = "拉取多少条,默认32",example = "32") @RequestParam(value = "maxnums",required = false,defaultValue = "32") Integer maxNums) {
List<{{@key}}Dto> list=new ArrayList<>();
list.add(new {{@key}}Dto());
return ResponseEntity.ok(list);
}
{{/each}}
}
{{/eq}}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册