-
路径:要见名知意,可以通过路径名就知道接口想要干什么
@RequestBody
@PathVariable
有的虽然页面并没有出现id,但仍然需要,
返回值是id,是要通过id进行修改。删除操作的, -
下拉框
@ApiModelProperty(value = “公司id”)
public List<ConfigOptionVO> companyGroups ;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(description = "配置筛选条件", value = "ConfigOptionVO")
public class ConfigOptionVO {
@ApiModelProperty("中文名称")
private String label;
@ApiModelProperty("值")
private String value;
}