You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
package com.tptj.demo.hg.simple.dao; |
|
|
|
import com.fr.decision.webservice.Response; |
|
import com.fr.decision.webservice.annotation.LoginStatusChecker; |
|
import com.fr.third.springframework.stereotype.Controller; |
|
import com.fr.third.springframework.web.bind.annotation.RequestMapping; |
|
import com.fr.third.springframework.web.bind.annotation.RequestMethod; |
|
import com.fr.third.springframework.web.bind.annotation.RequestParam; |
|
import com.fr.third.springframework.web.bind.annotation.ResponseBody; |
|
|
|
/** |
|
* @author 秃破天际 |
|
* @version 10.0 |
|
* Created by 秃破天际 on 2021/8/27 |
|
**/ |
|
@Controller(DemoService.PLUGIN_ID) |
|
@RequestMapping(value = "/tptj/simple/dao") |
|
@LoginStatusChecker(required = false) |
|
public class DemoResource{ |
|
@RequestMapping(value = "/test",method = RequestMethod.GET) |
|
@ResponseBody |
|
public Response test( @RequestParam(value="username") String username )throws Exception{ |
|
Response.ok( DemoService.getInstance().test("a","b") ); |
|
return Response.ok(DemoService.getInstance().user(username)); |
|
} |
|
} |