| | |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | import java.rmi.ServerException; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 全部码值 控制器 |
| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("blade-code/CodeAllcode") |
| | | @RequestMapping("/CodeAllcode") |
| | | @Api(value = "全部码值", tags = "全部码值接口") |
| | | public class CodeAllCodeController extends BladeController { |
| | | |
| | |
| | | CodeAllCode detail = CodeAllcodeService.getOne(Condition.getQueryWrapper(CodeAllcode)); |
| | | return R.data(CodeAllcodeWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/testdata") |
| | | @ResponseBody |
| | | public Map test(String clientId,String clientSecret) throws Exception { |
| | | Map<Object,Object> test = new HashMap<>(); |
| | | test.put("success",true); |
| | | test.put("message",""); |
| | | test.put("show",true); |
| | | test.put("code",200); |
| | | Map<Object,Object> test2 = new HashMap<>(); |
| | | test2.put("access_token","168a31ad-6540-4f45-98d9-ec241959c3e4"); |
| | | test2.put("refresh_token","cc554d4c-66ec-469d-9baf-799e579214ff"); |
| | | test2.put("openid","181****6777"); |
| | | test2.put("userNo","zhangsan"); |
| | | test2.put("token_type","bearer"); |
| | | test2.put("expires_in",2801); |
| | | test2.put("userCode","1fsdsff"); |
| | | test2.put("adUserNo","zhangsan1"); |
| | | test.put("data",test2); |
| | | // Map<Object,Object> test = new HashMap<>(); |
| | | // test.put("success",true); |
| | | // test.put("message",""); |
| | | // test.put("show",true); |
| | | // test.put("code",200); |
| | | // Map<Object,Object> test2 = new HashMap<>(); |
| | | // test2.put("token","168a31ad-6540-4f45-98d9-ec241959c3e4"); |
| | | // test2.put("expire","3600"); |
| | | // test.put("data",test2); |
| | | return test; |
| | | } |
| | | |
| | | @PostMapping("/todoAdd") |
| | | @ResponseBody |
| | | public Map todoAdd(@RequestHeader("token")String token,@RequestBody Map<String,String> map) throws Exception { |
| | | // Map<Object,Object> test = new HashMap<>(); |
| | | // test.put("success",true); |
| | | // test.put("message",""); |
| | | // test.put("show",true); |
| | | // test.put("code",200); |
| | | // Map<Object,Object> test2 = new HashMap<>(); |
| | | // test2.put("access_token","168a31ad-6540-4f45-98d9-ec241959c3e4"); |
| | | // test2.put("refresh_token","cc554d4c-66ec-469d-9baf-799e579214ff"); |
| | | // test2.put("openid","181****6777"); |
| | | // test2.put("userNo","zhangsan"); |
| | | // test2.put("token_type","bearer"); |
| | | // test2.put("expires_in",2801); |
| | | // test2.put("userCode","1"); |
| | | // test2.put("adUserNo","zhangsan1"); |
| | | // test.put("data",test2); |
| | | // Map<Object,Object> test = new HashMap<>(); |
| | | // test.put("success",true); |
| | | // test.put("message",""); |
| | | // test.put("show",true); |
| | | // test.put("code",200); |
| | | // Map<Object,Object> test2 = new HashMap<>(); |
| | | // test2.put("token","168a31ad-6540-4f45-98d9-ec241959c3e4"); |
| | | // test2.put("expire","3600"); |
| | | // test.put("data",test2); |
| | | Map<Object,Object> test = new HashMap<>(); |
| | | test.put("success",true); |
| | | test.put("message",""); |
| | | test.put("show",true); |
| | | test.put("code",200); |
| | | Map<Object,Object> test2 = new HashMap<>(); |
| | | test2.put("mid","78b57ce0-2222-46b8-81c4-0f661254db97"); |
| | | test2.put("id","437"); |
| | | test.put("data",test2); |
| | | return test; |
| | | } |
| | | /** |
| | | * 全部码值 分页 |
| | | */ |