admin
2021-10-12 664cc2fd39177fd3daa6d3988396c704d130882c
src/test/java/com/generater/TestEntity.java
@@ -16,33 +16,33 @@
 * @description: 测试entity
 * @date 2021/9/23 14:22
 */
@AdminController(mapping = "admin/api/test", title = "测试", searchForm = TestEntity.SearchForm.class)
@AdminController(mapping = "admin/api/test", title = "测试", searchForm = TestEntity.SearchForm.class,jsonp = true)
public class TestEntity {
    @Id
    private String id;
    @DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
    @Show(order = 0, title = "昵称")
    @Text(title = "昵称", maxLength = 50, require = true, placeHolder = "请输入昵称", desc = "昵称不能包含特殊字符", verifyType = FormVerifyType.regex, verifyValue = "^.{0-100}$", verifyNotifyMsg = "请输入正确的昵称")
    @Text(title = "昵称", maxLength = 50, require = true, placeHolder = "请输入昵称", desc = "昵称不能包含特殊字符", verifyType = FormVerifyType.none, verifyValue = "^.{0-100}$", verifyNotifyMsg = "请输入正确的昵称")
    private String nickName;
    @DaoQueryCondition
    @Show(order = 1, title = "类型")
    @Select(values = {"1,男", "2,女"}, title = "类型")
    @Select(values = {"1:男", "2:女"}, title = "类型")
    private int type;
    @DaoQueryCondition
    @Show(order = 2, title = "性别")
    @RadioGroup(values = {"1,男", "2,女"}, title = "性别")
    @RadioGroup(values = {"1:男", "2:女"}, title = "性别")
    private int sex;
    @Show(order = 3, title = "头像", showType = Show.ShowType.IMG, imgWidth = 50, imgHeight = 50)
    @Img(width = 50, height = 50, title = "头像")
    @Img(height = 50, title = "头像", uploadApi = "/admin/uploadimg", uploadApiParams = {"id:123123","type:2"})
    private String portrait;
    @DaoQueryCondition
    @Show(order = 4, title = "省")
    @Select(apiPath = "/admin/api/getProvince", title = "省")
    @Select(values = {"cq:重庆","js:江苏"}, title = "省", apiParams = {"page:1", "pageSize:10", "id:\"test\""})
    private String province;