角色相关(列表和下拉框)、用户查询、项目部分API
This commit is contained in:
@@ -147,7 +147,7 @@ class BaseController
|
||||
if (mb_strlen(strval($checkValue)) <= 0 && !in_array($fieldName, $this->notRequest)) {
|
||||
$requiredFields[] = $fieldName;
|
||||
} else {
|
||||
if (!empty($checkValue)) {
|
||||
if (!empty($checkValue) || $checkValue === 0) {
|
||||
$result[$fieldName] = $checkValue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,11 @@ class BaseService
|
||||
*/
|
||||
protected array $optionField = ['id', 'name'];
|
||||
|
||||
/**
|
||||
* @var array 下拉列表字段
|
||||
*/
|
||||
protected array $queryField = [];
|
||||
|
||||
/**
|
||||
* @var array 关联加载
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user