feat: 扩展rest-bean能力,支持提供表格,表格前端支持状态切换
This commit is contained in:
parent
9dd2563414
commit
39caf44231
@ -63,6 +63,7 @@ public class BeanProperty {
|
||||
* @return 结果
|
||||
*/
|
||||
public static BeanProperty form(PropertyDescriptor descriptor, Class<?> beanClass) {
|
||||
// 组装属性
|
||||
BeanProperty property = new BeanProperty();
|
||||
property.setName(descriptor.getName());
|
||||
property.setType(BeanPropertyType.of(descriptor, beanClass));
|
||||
@ -70,6 +71,7 @@ public class BeanProperty {
|
||||
property.setReadonly(true);
|
||||
return property;
|
||||
}
|
||||
// 如果是qo或者vo,处于严格模式z
|
||||
boolean strict = Qo.class.isAssignableFrom(beanClass) || Vo.class.isAssignableFrom(beanClass);
|
||||
// 尝试获取field
|
||||
Field field = FieldUtils.getField(beanClass, descriptor.getName(), true);
|
||||
|
Loading…
Reference in New Issue
Block a user