| | |
| | | import com.jilongda.manage.vo.TTicketVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | tTicketService.save(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "小票机详情") |
| | | @GetMapping(value = "/detail") |
| | | public ApiResult<TTicket> detail(Integer id) { |
| | | return ApiResult.success(tTicketService.getById(id)); |
| | | } |
| | | @ApiOperation(value = "小票机编辑") |
| | | @PostMapping(value = "/update") |
| | | public ApiResult<String> update(@RequestBody TTicket dto) { |