调整字段
This commit is contained in:
parent
0197af4fbe
commit
4796f51458
@ -1,22 +1,9 @@
|
||||
package ink.wgink.gateway.config;
|
||||
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import com.alibaba.fastjson.support.config.FastJsonConfig;
|
||||
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.converter.HttpMessageConverter;
|
||||
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
import org.springframework.security.crypto.password.PasswordEncoder;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* When you feel like quitting. Think about why you started
|
||||
|
@ -64,8 +64,8 @@ public class RouteDaoImpl extends BaseDao implements IRouteDao {
|
||||
Update update = new Update();
|
||||
update.set("system", routePO.getSystem());
|
||||
update.set("summary", routePO.getSummary());
|
||||
update.set("inUrl", routePO.getInUrl());
|
||||
update.set("outUrl", routePO.getOutUrl());
|
||||
update.set("path", routePO.getPath());
|
||||
update.set("uri", routePO.getUri());
|
||||
setUpdate(update);
|
||||
mongoTemplate.updateMulti(new Query(Criteria.where(ISystemConst.UUID).is(uuid)), update, RoutePO.class);
|
||||
}
|
||||
|
@ -1,10 +1,9 @@
|
||||
package ink.wgink.gateway.pojo.dtos.route;
|
||||
|
||||
import ink.wgink.gateway.dao.route.IRouteDao;
|
||||
import ink.wgink.gateway.pojo.BasePOJO;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.index.Indexed;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import java.io.Serializable;
|
||||
@ -21,13 +20,13 @@ import java.io.Serializable;
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
@Document(collection = "sys_route")
|
||||
@Document(collection = IRouteDao.COLLECTION_NAME)
|
||||
public class RouteDTO extends BasePOJO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4892456861969101733L;
|
||||
private String system;
|
||||
private String summary;
|
||||
private String outUrl;
|
||||
private String inUrl;
|
||||
private String path;
|
||||
private String uri;
|
||||
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
package ink.wgink.gateway.pojo.pos.route;
|
||||
|
||||
import ink.wgink.gateway.dao.route.IRouteDao;
|
||||
import ink.wgink.gateway.pojo.BasePOJO;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.index.Indexed;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@ -21,15 +21,16 @@ import java.io.Serializable;
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
@Document(collection = "sys_route")
|
||||
@Document(collection = IRouteDao.COLLECTION_NAME)
|
||||
public class RoutePO extends BasePOJO implements Serializable {
|
||||
private static final long serialVersionUID = 3471850588453134724L;
|
||||
|
||||
@Indexed
|
||||
private String system;
|
||||
private String summary;
|
||||
@Indexed
|
||||
private String outUrl;
|
||||
private String path;
|
||||
@Indexed
|
||||
private String inUrl;
|
||||
private String uri;
|
||||
|
||||
}
|
||||
|
@ -2,7 +2,6 @@ package ink.wgink.gateway.pojo.vos.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.springframework.data.mongodb.core.index.Indexed;
|
||||
|
||||
/**
|
||||
* When you feel like quitting. Think about why you started
|
||||
@ -20,38 +19,7 @@ public class RouteVO {
|
||||
|
||||
private String system;
|
||||
private String summary;
|
||||
private String outUrl;
|
||||
private String inUrl;
|
||||
private String path;
|
||||
private String uri;
|
||||
|
||||
public String getSystem() {
|
||||
return system == null ? "" : system;
|
||||
}
|
||||
|
||||
public void setSystem(String system) {
|
||||
this.system = system;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary == null ? "" : summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getOutUrl() {
|
||||
return outUrl == null ? "" : outUrl;
|
||||
}
|
||||
|
||||
public void setOutUrl(String outUrl) {
|
||||
this.outUrl = outUrl;
|
||||
}
|
||||
|
||||
public String getInUrl() {
|
||||
return inUrl == null ? "" : inUrl;
|
||||
}
|
||||
|
||||
public void setInUrl(String inUrl) {
|
||||
this.inUrl = inUrl;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user