RoleMenu.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.springblade.modules.system.entity;
  17. import com.baomidou.mybatisplus.annotation.IdType;
  18. import com.baomidou.mybatisplus.annotation.TableId;
  19. import com.baomidou.mybatisplus.annotation.TableName;
  20. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  21. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  22. import io.swagger.annotations.ApiModel;
  23. import io.swagger.annotations.ApiModelProperty;
  24. import lombok.Data;
  25. import java.io.Serializable;
  26. /**
  27. * 实体类
  28. *
  29. * @author Chill
  30. */
  31. @Data
  32. @TableName("blade_role_menu")
  33. @ApiModel(value = "RoleMenu对象", description = "RoleMenu对象")
  34. public class RoleMenu implements Serializable {
  35. private static final long serialVersionUID = 1L;
  36. /**
  37. * 主键
  38. */
  39. @ApiModelProperty(value = "主键")
  40. @TableId(value = "id", type = IdType.ASSIGN_ID)
  41. @JsonSerialize(using = ToStringSerializer.class)
  42. private Long id;
  43. /**
  44. * 菜单id
  45. */
  46. @ApiModelProperty(value = "菜单id")
  47. @JsonSerialize(using = ToStringSerializer.class)
  48. private Long menuId;
  49. /**
  50. * 角色id
  51. */
  52. @ApiModelProperty(value = "角色id")
  53. @JsonSerialize(using = ToStringSerializer.class)
  54. private Long roleId;
  55. }