|
@@ -335,4 +335,16 @@ class FormService implements FormServiceInterface
|
|
|
return Result::error('查询失败:' . $e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 获取字段类型列表
|
|
|
+ */
|
|
|
+ public function getGlobalTableFieldTypeList(array $data): array
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ $list = Db::connection('global')->table("global_table_field_type")->get();
|
|
|
+ return Result::success($list);
|
|
|
+ }catch (\Throwable $e){
|
|
|
+ return Result::error('查询失败:' . $e->getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|