{{#eq apps "link"}}
package {{packageName}}.api.{{apps}}.dict;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import org.springframework.validation.annotation.Validated;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.edge.api.link.annotation.G1;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import {{packageName}}.api.{{apps}}.dict.*;

@Slf4j
@Api(tags = {"数据字典" })
@RestController("{{lowerCase app.codeName}}-DictResource")
@RequestMapping("/{{lowerCase app.codeName}}/dict")
@G1
@ApiSupport(order = 99)
public class DictResource {

    /**
    {{#each app.dicts}}
     INSERT INTO ibzdictcatalog (CID, CCODE, CNAME, CGROUP, ENABLE) VALUES ('{{pascalCase codeName}}Dict', '{{pascalCase codeName}}Dict', '{{name}}', 'link', 1);
    {{/each}}
     */

    {{#each app.dicts}}
    @ApiOperation(value = "字典：{{name}}[{{pascalCase codeName}}Dict]", tags = {"数据字典" },  notes = "字典：{{name}}[{{pascalCase codeName}}Dict]&nbsp;&nbsp;<a href=\"/xftong/link/dict/{{pascalCase codeName}}Dict.html\" target=\"_blank\">查看展示清单</a>&nbsp;&nbsp;<a href=\"/xftong/link/dict/{{pascalCase codeName}}Dict\" target=\"_blank\">查看json</a>")
    @RequestMapping(method = RequestMethod.GET, value = "/{{pascalCase codeName}}Dict")
    public ResponseEntity<{{pascalCase codeName}}Dict> get{{pascalCase codeName}}Dict() {
        return ResponseEntity.ok(new {{pascalCase codeName}}Dict());
    }

    {{/each}}


}
{{/eq}}