Commit 72f91c2a authored by 周健威's avatar 周健威

添加接口

parent 4c60d249
...@@ -166,6 +166,26 @@ public class CustomForm implements Serializable { ...@@ -166,6 +166,26 @@ public class CustomForm implements Serializable {
@Column(name = "is_del") @Column(name = "is_del")
@ApiModelProperty(value = "是否删除:0、否, 1、是") @ApiModelProperty(value = "是否删除:0、否, 1、是")
private Integer isDel; private Integer isDel;
/**
* 省名称
*/
@Column(name = "province_name")
@ApiModelProperty(value = "省名称")
private String provinceName;
/**
* 市名称
*/
@Column(name = "city_name")
@ApiModelProperty(value = "市名称")
private String cityName;
/**
* 区名称
*/
@Column(name = "area_name")
@ApiModelProperty(value = "区名称")
private String areaName;
} }
...@@ -58,7 +58,8 @@ public class WebConfiguration implements WebMvcConfigurer { ...@@ -58,7 +58,8 @@ public class WebConfiguration implements WebMvcConfigurer {
"/industryApplicationInfo/**", "/industryApplicationInfo/**",
"/industryApplicationType/**", "/industryApplicationType/**",
"/newsInfo/**", "/newsInfo/**",
"/newsType/**" "/newsType/**",
"/customForm/**"
}; };
Collections.addAll(list, urls); Collections.addAll(list, urls);
return list; return list;
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.BannerBiz; import com.upyuns.platform.rs.website.biz.BannerBiz;
...@@ -22,6 +23,7 @@ public class BannerController extends BaseController<BannerBiz, Banner> { ...@@ -22,6 +23,7 @@ public class BannerController extends BaseController<BannerBiz, Banner> {
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll() { public ObjectRestResponse getAll() {
return baseBiz.getAll(1); return baseBiz.getAll(1);
} }
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.ImageInformationBiz; import com.upyuns.platform.rs.website.biz.ImageInformationBiz;
...@@ -24,6 +25,7 @@ public class ImageInformationController extends BaseController<ImageInformationB ...@@ -24,6 +25,7 @@ public class ImageInformationController extends BaseController<ImageInformationB
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll(ImageInformationDto imageInformationDto) { public ObjectRestResponse getAll(ImageInformationDto imageInformationDto) {
return ObjectRestResponse.succ(baseBiz.selectList(imageInformationDto)); return ObjectRestResponse.succ(baseBiz.selectList(imageInformationDto));
} }
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.IndustryApplicationInfoBiz; import com.upyuns.platform.rs.website.biz.IndustryApplicationInfoBiz;
...@@ -22,11 +23,13 @@ public class IndustryApplicationInfoController extends BaseController<IndustryAp ...@@ -22,11 +23,13 @@ public class IndustryApplicationInfoController extends BaseController<IndustryAp
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll() { public ObjectRestResponse getAll() {
return baseBiz.getAllIndexShow(); return baseBiz.getAllIndexShow();
} }
@GetMapping(value = "/app/unauth/detail") @GetMapping(value = "/app/unauth/detail")
@IgnoreUserToken
public ObjectRestResponse detail(Integer id) { public ObjectRestResponse detail(Integer id) {
return ObjectRestResponse.succ(baseBiz.selectById(id)); return ObjectRestResponse.succ(baseBiz.selectById(id));
} }
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.IndustryApplicationTypeBiz; import com.upyuns.platform.rs.website.biz.IndustryApplicationTypeBiz;
...@@ -22,12 +23,14 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp ...@@ -22,12 +23,14 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll(Integer indexShow) { public ObjectRestResponse getAll(Integer indexShow) {
return baseBiz.getAll(indexShow); return baseBiz.getAll(indexShow);
} }
@GetMapping(value = "/app/unauth/getDetail") @GetMapping(value = "/app/unauth/getDetail")
@IgnoreUserToken
public ObjectRestResponse getDetail(Integer id) { public ObjectRestResponse getDetail(Integer id) {
return baseBiz.getDetail(id); return baseBiz.getDetail(id);
} }
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.NewsInfoBiz; import com.upyuns.platform.rs.website.biz.NewsInfoBiz;
...@@ -22,16 +23,19 @@ public class NewsInfoController extends BaseController<NewsInfoBiz, NewsInfo> { ...@@ -22,16 +23,19 @@ public class NewsInfoController extends BaseController<NewsInfoBiz, NewsInfo> {
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll(NewsInfoDto newsInfoDto) { public ObjectRestResponse getAll(NewsInfoDto newsInfoDto) {
return baseBiz.selectList(newsInfoDto); return baseBiz.selectList(newsInfoDto);
} }
@GetMapping(value = "/app/unauth/getHot") @GetMapping(value = "/app/unauth/getHot")
@IgnoreUserToken
public ObjectRestResponse getHotMsg() { public ObjectRestResponse getHotMsg() {
return baseBiz.getHotMsg(); return baseBiz.getHotMsg();
} }
@GetMapping(value = "/app/unauth/detail") @GetMapping(value = "/app/unauth/detail")
@IgnoreUserToken
public ObjectRestResponse detail(Integer id) { public ObjectRestResponse detail(Integer id) {
return ObjectRestResponse.succ(baseBiz.selectById(id)); return ObjectRestResponse.succ(baseBiz.selectById(id));
} }
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.NewsTypeBiz; import com.upyuns.platform.rs.website.biz.NewsTypeBiz;
...@@ -17,6 +18,7 @@ public class NewsTypeController extends BaseController<NewsTypeBiz, NewsType> { ...@@ -17,6 +18,7 @@ public class NewsTypeController extends BaseController<NewsTypeBiz, NewsType> {
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll() { public ObjectRestResponse getAll() {
return baseBiz.getAll(); return baseBiz.getAll();
} }
......
package com.upyuns.platform.rs.website.controller.web; package com.upyuns.platform.rs.website.controller.web;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.CommonInfoBiz; import com.upyuns.platform.rs.website.biz.CommonInfoBiz;
...@@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.*;
public class CommonInfoWebController extends BaseController<CommonInfoBiz,CommonInfo> { public class CommonInfoWebController extends BaseController<CommonInfoBiz,CommonInfo> {
@GetMapping(value = "/app/unauth/getByType") @GetMapping(value = "/app/unauth/getByType")
@IgnoreUserToken
public ObjectRestResponse getByType(Integer type) { public ObjectRestResponse getByType(Integer type) {
return ObjectRestResponse.succ(baseBiz.getByType(type)); return ObjectRestResponse.succ(baseBiz.getByType(type));
} }
......
package com.upyuns.platform.rs.website.controller.web; package com.upyuns.platform.rs.website.controller.web;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.ImageImgStorageBiz; import com.upyuns.platform.rs.website.biz.ImageImgStorageBiz;
...@@ -12,11 +13,13 @@ import org.springframework.web.bind.annotation.*; ...@@ -12,11 +13,13 @@ import org.springframework.web.bind.annotation.*;
public class ImageImgStorageWebController extends BaseController<ImageImgStorageBiz,ImageImgStorage> { public class ImageImgStorageWebController extends BaseController<ImageImgStorageBiz,ImageImgStorage> {
@GetMapping(value = "/app/unauth/getDetail/{id}") @GetMapping(value = "/app/unauth/getDetail/{id}")
@IgnoreUserToken
public ObjectRestResponse getDetail(@PathVariable Integer id) { public ObjectRestResponse getDetail(@PathVariable Integer id) {
return baseBiz.getDetail(id); return baseBiz.getDetail(id);
} }
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll(Integer type) { public ObjectRestResponse getAll(Integer type) {
return baseBiz.getAll(type); return baseBiz.getAll(type);
} }
......
package com.upyuns.platform.rs.website.controller.web; package com.upyuns.platform.rs.website.controller.web;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.ImageInformationBiz; import com.upyuns.platform.rs.website.biz.ImageInformationBiz;
...@@ -12,11 +13,13 @@ import org.springframework.web.bind.annotation.*; ...@@ -12,11 +13,13 @@ import org.springframework.web.bind.annotation.*;
public class ImageInformationWebController extends BaseController<ImageInformationBiz,ImageInformation> { public class ImageInformationWebController extends BaseController<ImageInformationBiz,ImageInformation> {
@GetMapping(value = "/app/unauth/getAll") @GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll(ImageInformationDto imageInformationDto) { public ObjectRestResponse getAll(ImageInformationDto imageInformationDto) {
return ObjectRestResponse.succ(baseBiz.selectList(imageInformationDto)); return ObjectRestResponse.succ(baseBiz.selectList(imageInformationDto));
} }
@GetMapping(value = "/app/unauth/getDetail/{id}") @GetMapping(value = "/app/unauth/getDetail/{id}")
@IgnoreUserToken
public ObjectRestResponse getDetail(@PathVariable Integer id) { public ObjectRestResponse getDetail(@PathVariable Integer id) {
return ObjectRestResponse.succ(baseBiz.selectById(id)); return ObjectRestResponse.succ(baseBiz.selectById(id));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment