| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.Devstate_usrService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("devStateUsr") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "devStateUsr接口") |
| | | public class Devstate_usrController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //添加 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加") |
| | | public ServiceModel add(@RequestBody Devstate_usr dev_usr) { |
| | | // Devstate_usr dev_usr=getGson().fromJson(json, Devstate_usr.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //修改 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Devstate_usr dev_usr) { |
| | | // Devstate_usr dev_usr=getGson().fromJson(json, Devstate_usr.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | } |
| | | //删除 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody Devstate_usr dev_usr) { |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | | // Devstate_usr dev_usr=getGson().fromJson(json, Devstate_usr.class); |
| | |
| | | } |
| | | //根据用户id查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="用户id查询") |
| | | public ServiceModel serchByCondition() { |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | | Devstate_usr dev_usr = new Devstate_usr(); |