fetch:UUID修改

This commit is contained in:
赵肖云
2021-06-23 09:22:55 +08:00
parent bb5657ca40
commit a1503fd90f
5 changed files with 19 additions and 28 deletions
@@ -6,7 +6,9 @@ import com.adc.da.http.Result;
import com.adc.da.slrs.sarRole.service.ITsRoleService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.adc.da.slrs.sarRole.entity.TsRole;
import io.swagger.annotations.Api;
@@ -43,4 +45,10 @@ public class TsRoleController extends BaseController<TsRole> {
List<TsRole> tsRoles=tsRoleService.getByName(name);
return Result.success(tsRoles);
}
@ApiOperation("新增角色")
@PostMapping
public ResponseMessage<List<TsRole>> addRole(@Validated(TsRole.insert.class) TsRole tsRole){
return null;
}
}
@@ -18,6 +18,8 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotNull;
/**
* <p>
*
@@ -31,6 +33,8 @@ import org.springframework.format.annotation.DateTimeFormat;
@Accessors(chain = true)
@ApiModel(value="TsRole对象", description="")
public class TsRole extends BaseEntity {
public interface insert{
}
private static final long serialVersionUID = 1L;
@@ -38,6 +42,7 @@ public class TsRole extends BaseEntity {
@TableId("ID")
private String id;
@NotNull(message = "name不能为空",groups = {insert.class})
@ApiModelProperty(value = "角色名称")
@TableField("NAME")
private String name;
@@ -51,13 +51,6 @@ import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.sf.json.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.util.PDFTextStripper;
import org.apache.pdfbox.util.PDFTextStripperByArea;
import org.apache.poi.hwpf.extractor.WordExtractor;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.xwpf.extractor.XWPFWordExtractor;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;