| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermission('data:channel-http:create')") |
| | | @PostMapping("/create") |
| | | public CommonResult<Boolean> create(@RequestBody HttpTokenEntity HttpTokenEntity){ |
| | | String id = UUID.randomUUID().toString(); |
| | | HttpTokenEntity.setId(id); |
| | | HttpTokenEntity.setId(UUID.randomUUID().toString()); |
| | | HttpTokenEntity.setUpdateTime(new Date()); |
| | | httpTokenService.add(HttpTokenEntity); |
| | | return success(true); |
| | | } |