@PutMapping("/id/{id}")
    public ShenyuAdminResult updateTagRelation(@PathVariable("id") @Valid final String id,
                                       @Valid @RequestBody final TagRelationDTO tagRelationDTO) {
        tagRelationDTO.setId(id);
        Integer updateCount = tagRelationService.update(tagRelationDTO);
        return ShenyuAdminResult.success(ShenyuResultMessage.UPDATE_SUCCESS, updateCount);
    }
@Test
    public void testUpdateTagRelation() throws Exception {
        TagRelationDTO tagRelationDTO = buildTagRelationDTO();
        given(tagRelationService.update(any())).willReturn(1);
        this.mockMvc.perform(MockMvcRequestBuilders.put("/tag-relation/id/123")
                        .contentType(MediaType.APPLICATION_JSON)
                        .param("id", "123")
                        .content(GsonUtils.getInstance().toJson(tagRelationDTO)))
                .andExpect(status().isOk())
                .andExpect(jsonPath("$.message", is(ShenyuResultMessage.UPDATE_SUCCESS)))
                .andReturn();
    }