swagger完善

master
shijie 4 years ago
parent b02bee632b
commit aedfe7bb62
  1. 5
      pom.xml
  2. 2
      src/main/java/com/yipin/liuwanr/entity/Project_Management.java

@ -80,6 +80,11 @@
<artifactId>springfox-swagger2</artifactId> <artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version> <version>2.7.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<version>2.3.1.RELEASE</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

@ -11,7 +11,7 @@ import io.swagger.annotations.ApiModelProperty;
@ApiModel(value = "Project_Management对象", description = "项目管理对象Project_Management") @ApiModel(value = "Project_Management对象", description = "项目管理对象Project_Management")
public class Project_Management { public class Project_Management {
@ApiModelProperty(hidden = true) @ApiModelProperty(value = "项目主键ID,编辑项目需要传,新增项目不需要传", name = "projectId", example = "223")
private Integer projectId;// 项目主键ID private Integer projectId;// 项目主键ID
@ApiModelProperty(value = "项目名称", name = "projectName", example = "python教学项目", required = true) @ApiModelProperty(value = "项目名称", name = "projectName", example = "python教学项目", required = true)

Loading…
Cancel
Save