add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//package com.iotechn.unimall.admin.api.tools;
//
//import com.dobbinsoft.fw.core.annotation.HttpMethod;
//import com.dobbinsoft.fw.core.annotation.HttpOpenApi;
//import com.dobbinsoft.fw.core.annotation.HttpParam;
//import com.dobbinsoft.fw.core.annotation.HttpParamType;
//import com.dobbinsoft.fw.core.annotation.param.NotNull;
//import com.dobbinsoft.fw.core.exception.ServiceException;
//import com.iotechn.unimall.data.dto.CodeReverseGenerateDTO;
//import com.iotechn.unimall.data.dto.CodeReverseGenerateTableDTO;
//
//import java.util.List;
//
///**
// * Created with IntelliJ IDEA.
// * Description: 代码生成器、现在主要是逆向生成 Admin 的常用CRUD。
// * Attention: 要使用此功能,请保证unimall的项目结构不要变。否则文件将保存进错误的地址!
// * User: rize
// * Date: 2020/3/11
// * Time: 10:40
// */
//@HttpOpenApi(group = "admin.generator", description = "生成器服务")
//public interface GeneratorService {
//
//    @HttpMethod(description = "列出表")
//    public List<CodeReverseGenerateTableDTO> listTable(
//            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId) throws ServiceException;
//
//    @HttpMethod(description = "加载列")
//    public List<CodeReverseGenerateDTO.ColumnDefinition> loadColumns(
//            @NotNull @HttpParam(name = "tableName", type = HttpParamType.COMMON, description = "加载DB列") String tableName,
//            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId) throws ServiceException;
//
//    @HttpMethod(description = "生成")
//    public String generate(
//            @NotNull @HttpParam(name = "generateDTO", type = HttpParamType.COMMON, description = "生成器模型") CodeReverseGenerateDTO generateDTO,
//            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId) throws ServiceException;
//
//}