| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("battAttention") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battAttention接口") |
| | | public class Batt_attentionController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //添加关注 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加关注") |
| | | public ServiceModel add(@RequestBody Batt_attention attention) { |
| | | // Batt_attention attention = getGson().fromJson(json, Batt_attention.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //取消关注 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="取消关注") |
| | | public ServiceModel delete(@RequestBody Batt_attention attention) { |
| | | // Batt_attention attention = getGson().fromJson(json, Batt_attention.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //根据电池组的筛选条件,查询单体的实际电压 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="根据电池组的筛选条件,查询单体的实际电压") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | // Batt_Maint_Dealarm bmd = getGson().fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | } |
| | | //关注之前识别是否关注过 |
| | | @GetMapping("judge") |
| | | @ApiOperation(notes = "",value="关注之前识别是否关注过") |
| | | public ServiceModel judgeInOrNot(@RequestBody Batt_attention attention) { |
| | | // Batt_attention attention = getGson().fromJson(json, Batt_attention.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |