refactor(feature): 重构动态表格功能模块结构
- 将 KitDynamicTableColumn、KitDynamicTableResponse、KitDynamicTableUtil 类从 system 模块移动到 feature 包 - 更新相关导入路径以匹配新的包结构 - 移除 KitDynamicTableResponse 中的测试代码和无用依赖 - 在前端 API 中添加 searchMenu3 方法并更新组件调用 - 更新主题变量文件引用为暗色主题
This commit is contained in:
@@ -16,5 +16,13 @@ export function searchMenu2(query) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { searchMenu, searchMenu2 }
|
||||
export function searchMenu3(query) {
|
||||
return request({
|
||||
url: 'api/features/CuteDynamicTable/searchMenu3',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
export default { searchMenu, searchMenu2, searchMenu3 }
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
@import 'themes/light/cloudsky/variables';
|
||||
@import 'themes/dark/default/variables';
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
}
|
||||
},
|
||||
fetch: async(queryParams) => {
|
||||
return FeatureCuteDynamicTableService.searchMenu2(queryParams)
|
||||
return FeatureCuteDynamicTableService.searchMenu3(queryParams)
|
||||
}
|
||||
},
|
||||
apiData: [
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package cn.odboy.system.features.core;
|
||||
package cn.odboy.feature;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
+1
-10
@@ -13,13 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package cn.odboy.system.features.core;
|
||||
package cn.odboy.feature;
|
||||
|
||||
import cn.hutool.core.util.ReflectUtil;
|
||||
import cn.odboy.base.KitObject;
|
||||
import cn.odboy.base.KitPageArgs;
|
||||
import cn.odboy.system.features.model.SystemMenuDynamicTableModel;
|
||||
import cn.odboy.system.dal.dataobject.SystemMenuTb;
|
||||
import cn.odboy.util.KitBeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
@@ -27,7 +25,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -172,10 +169,4 @@ public class KitDynamicTableResponse<E, T> extends KitObject {
|
||||
*/
|
||||
private Boolean sortable = false;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
KitDynamicTableResponse<SystemMenuTb, SystemMenuDynamicTableModel> response = new KitDynamicTableResponse<>(
|
||||
SystemMenuDynamicTableModel.class, new Page<>(), "id");
|
||||
System.err.println(response);
|
||||
}
|
||||
}
|
||||
+1
-3
@@ -13,12 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package cn.odboy.system.features.util;
|
||||
package cn.odboy.feature;
|
||||
|
||||
import cn.odboy.base.KitPageArgs;
|
||||
import cn.odboy.framework.mybatisplus.core.KitMpQUtil;
|
||||
import cn.odboy.system.dal.dataobject.SystemMenuTb;
|
||||
import cn.odboy.system.dal.model.request.SystemQueryMenuArgs;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.experimental.UtilityClass;
|
||||
+2
-3
@@ -17,13 +17,12 @@ package cn.odboy.system.features;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.odboy.base.KitPageArgs;
|
||||
import cn.odboy.framework.mybatisplus.core.KitMpQUtil;
|
||||
import cn.odboy.system.features.core.KitDynamicTableResponse;
|
||||
import cn.odboy.feature.KitDynamicTableResponse;
|
||||
import cn.odboy.system.features.model.SystemMenuDynamicTableModel;
|
||||
import cn.odboy.system.dal.dataobject.SystemMenuTb;
|
||||
import cn.odboy.system.dal.model.request.SystemQueryMenuArgs;
|
||||
import cn.odboy.system.dal.mysql.SystemMenuMapper;
|
||||
import cn.odboy.system.features.util.KitDynamicTableUtil;
|
||||
import cn.odboy.feature.KitDynamicTableUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
package cn.odboy.system.features.model;
|
||||
|
||||
import cn.odboy.base.KitObject;
|
||||
import cn.odboy.system.features.core.KitDynamicTableColumn;
|
||||
import cn.odboy.feature.KitDynamicTableColumn;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user