Commit 368f7377 authored by libin's avatar libin

旅游标签

parent 24c841a1
package com.xxfc.platform.tour.rest.admin;
import com.github.wxiaoqi.security.common.annotation.BeanValid;
import com.github.wxiaoqi.security.common.annotation.SimpleValid;
import com.github.wxiaoqi.security.common.exception.BaseException;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.vo.PageDataVO;
import com.xxfc.platform.tour.biz.TourTagBiz;
......@@ -10,10 +7,10 @@ import com.xxfc.platform.tour.common.TourBaseController;
import com.xxfc.platform.tour.dto.TourTagAndBannerDTO;
import com.xxfc.platform.tour.entity.TourTag;
import io.swagger.annotations.*;
import lombok.SneakyThrows;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotEmpty;
import java.util.List;
......@@ -143,4 +140,10 @@ public class TourTagAdminController extends TourBaseController<TourTagBiz> {
List<TourTag> tourTags = getBaseBiz().findTourTagNameAndIdsByStatus(0);
return ObjectRestResponse.succ(tourTags);
}
@GetMapping
public void AssertException(){
Assert.isNull(TourTag.builder().build(),"Assert测试成功了");
}
}
\ No newline at end of file
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