feat: 增强Getter/Setter转换器 - 支持所有属性
🎯 核心修复: - 替换白名单模式为通用正则匹配 - obj.getXxx() → obj.xxx (所有属性) - obj.setXxx(value) → obj.xxx = value (所有属性) ✅ 修复内容: 1. 通用Getter转换: /(\w+)\.get([A-Z]\w*)\(\)/g 2. 通用Setter转换: /(\w+)\.set([A-Z]\w*)\(([^)]+)\)/g 3. 自动首字母小写转换 📊 预期效果: - 减少 ~3,000 个 TS2339 错误 - 14,283 → 预计 ~11,000 🔧 下一步: Controller-Service参数匹配
This commit is contained in:
238
wwjcloud-nest-v1/tools/ERROR_ANALYSIS.md
Normal file
238
wwjcloud-nest-v1/tools/ERROR_ANALYSIS.md
Normal file
@@ -0,0 +1,238 @@
|
||||
# 🔍 编译错误分析报告
|
||||
|
||||
## 📊 错误总数: 14,283
|
||||
|
||||
## 🎯 错误分类与修复策略
|
||||
|
||||
### 1️⃣ **控制器参数不匹配(最高优先级)** - 约 8,000+ 个错误
|
||||
**错误类型**: `TS2554`, `TS2345`
|
||||
|
||||
#### 问题描述
|
||||
控制器调用Service方法时,参数数量或类型不匹配。
|
||||
|
||||
**典型错误示例**:
|
||||
```typescript
|
||||
// ❌ 错误1: 参数数量不匹配
|
||||
// Controller: 传了2个参数
|
||||
const result = await this.addonDevelopServiceImplService.info(key, query);
|
||||
// Service: 只定义了1个参数
|
||||
async info(key: string): Promise<any> { ... }
|
||||
|
||||
// ❌ 错误2: 参数类型不匹配
|
||||
// Controller: 传了 Record<string, any>
|
||||
const result = await this.addonLogServiceImplService.detail(query);
|
||||
// Service: 期望 number
|
||||
async detail(id: number): Promise<any> { ... }
|
||||
```
|
||||
|
||||
#### 根本原因
|
||||
**Service Generator 的 `generateMethodParameters` 提取了 Java 方法参数,但没有同步到 Controller Generator!**
|
||||
|
||||
Controller 仍然使用硬编码的路由参数(`@Param('id')`, `@Query()`, `@Body()`),没有根据 Service 的实际参数进行适配。
|
||||
|
||||
#### 修复策略
|
||||
**方案A(推荐)**: 修改 **Controller Generator**,让其调用 Service 时匹配 Service 的参数签名
|
||||
- 读取 Service 的方法参数
|
||||
- 根据参数类型决定使用 `@Param()`, `@Query()`, 还是 `@Body()`
|
||||
- 生成正确的调用代码
|
||||
|
||||
**方案B(备选)**: 修改 **Service Generator**,让其适配 Controller 的路由参数
|
||||
- 分析 Java Controller 的路由参数
|
||||
- 让 Service 方法接受相同的参数结构
|
||||
|
||||
**工作量**: 中等(1-2小时)
|
||||
**影响范围**: ~8,000 个错误 → 0
|
||||
|
||||
---
|
||||
|
||||
### 2️⃣ **方法不存在** - 约 500+ 个错误
|
||||
**错误类型**: `TS2339`
|
||||
|
||||
#### 问题描述
|
||||
Controller 调用 Service 方法,但 Service 中该方法不存在。
|
||||
|
||||
**典型错误示例**:
|
||||
```typescript
|
||||
// ❌ 控制器调用
|
||||
const result = await this.niucloudServiceImplService.checkKey(key, query);
|
||||
// ^^^^^^^^ 方法不存在
|
||||
|
||||
// ❌ 控制器调用
|
||||
const result = await this.dictServiceImplService.addDictData(body, id);
|
||||
// ^^^^^^^^^^^ 方法不存在
|
||||
```
|
||||
|
||||
#### 根本原因
|
||||
1. Java Service 中有这些方法,但迁移工具**过滤掉了某些方法**(如非 public 方法)
|
||||
2. 或者 Java Scanner 没有正确提取这些方法
|
||||
|
||||
#### 修复策略
|
||||
1. **检查 Java Scanner** - 确保所有 public 方法都被提取
|
||||
2. **检查 Service Generator** - 确保所有提取的方法都被生成
|
||||
3. **手动补充缺失的方法**(如果确实不存在)
|
||||
|
||||
**工作量**: 小(30分钟)
|
||||
**影响范围**: ~500 个错误 → 0
|
||||
|
||||
---
|
||||
|
||||
### 3️⃣ **Service注入缺失** - 约 100+ 个错误
|
||||
**错误类型**: `TS2339`
|
||||
|
||||
#### 问题描述
|
||||
Controller 尝试访问一个未注入的 Service。
|
||||
|
||||
**典型错误示例**:
|
||||
```typescript
|
||||
// ❌ 控制器尝试使用
|
||||
const result = await this.corePromotionAdvServiceImplService.getIndexAdvList(query);
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 未注入
|
||||
|
||||
// 构造函数中缺少
|
||||
constructor(
|
||||
// ❌ 没有注入 corePromotionAdvServiceImplService
|
||||
) {}
|
||||
```
|
||||
|
||||
#### 根本原因
|
||||
**Controller Generator 的依赖注入逻辑不完整**,没有分析 Controller 调用的所有 Service 并自动注入。
|
||||
|
||||
#### 修复策略
|
||||
1. **增强 Controller Generator** - 分析 Controller 方法体,提取所有使用的 Service
|
||||
2. **自动生成构造函数注入**
|
||||
|
||||
**工作量**: 小(30分钟)
|
||||
**影响范围**: ~100 个错误 → 0
|
||||
|
||||
---
|
||||
|
||||
### 4️⃣ **Getter/Setter转换** - 约 3,000+ 个错误
|
||||
**错误类型**: `TS2339`
|
||||
|
||||
#### 问题描述
|
||||
Java 的 `.getXxx()` / `.setXxx()` 方法调用未转换为 TypeScript 的属性访问。
|
||||
|
||||
**典型错误示例**:
|
||||
```java
|
||||
// Java 代码
|
||||
String name = user.getName();
|
||||
user.setAge(25);
|
||||
```
|
||||
|
||||
```typescript
|
||||
// ❌ 当前生成(错误)
|
||||
const name = user.getName(); // TS2339: Property 'getName' does not exist
|
||||
user.setAge(25); // TS2339: Property 'setAge' does not exist
|
||||
|
||||
// ✅ 应该生成
|
||||
const name = user.name;
|
||||
user.age = 25;
|
||||
```
|
||||
|
||||
#### 修复策略
|
||||
在 **Service Method Converter** 中添加 Getter/Setter 转换器:
|
||||
```javascript
|
||||
// 转换 .getXxx() → .xxx
|
||||
tsCode = tsCode.replace(/\.get([A-Z]\w+)\(\)/g, (match, prop) => {
|
||||
return `.${prop.charAt(0).toLowerCase() + prop.slice(1)}`;
|
||||
});
|
||||
|
||||
// 转换 .setXxx(value) → .xxx = value
|
||||
tsCode = tsCode.replace(/\.set([A-Z]\w+)\(([^)]+)\)/g, (match, prop, value) => {
|
||||
const propName = prop.charAt(0).toLowerCase() + prop.slice(1);
|
||||
return `.${propName} = ${value}`;
|
||||
});
|
||||
```
|
||||
|
||||
**工作量**: 小(1小时)
|
||||
**影响范围**: ~3,000 个错误 → 0
|
||||
|
||||
---
|
||||
|
||||
### 5️⃣ **业务逻辑细节** - 约 2,000+ 个错误
|
||||
**错误类型**: 各种
|
||||
|
||||
#### 问题描述
|
||||
复杂的业务逻辑转换不完整,如:
|
||||
- `QueryWrapper` 未转换
|
||||
- `JSONArray` 未转换
|
||||
- 复杂表达式
|
||||
- 类型推断失败
|
||||
|
||||
#### 修复策略
|
||||
1. **增强现有转换器** - 处理 QueryWrapper, JSONArray 等
|
||||
2. **手动修复**(部分复杂逻辑)
|
||||
|
||||
**工作量**: 大(5-8小时)
|
||||
**影响范围**: ~2,000 个错误 → 预计剩余 500
|
||||
|
||||
---
|
||||
|
||||
## 🎯 推荐修复顺序
|
||||
|
||||
### 第一优先级(立即修复)
|
||||
1. ✅ **控制器参数匹配** → 减少 ~8,000 个错误
|
||||
2. ✅ **Getter/Setter 转换** → 减少 ~3,000 个错误
|
||||
|
||||
**预计剩余错误**: 14,283 - 11,000 = **3,283**
|
||||
|
||||
### 第二优先级(今日完成)
|
||||
3. ✅ **Service 注入修复** → 减少 ~100 个错误
|
||||
4. ✅ **缺失方法修复** → 减少 ~500 个错误
|
||||
|
||||
**预计剩余错误**: 3,283 - 600 = **2,683**
|
||||
|
||||
### 第三优先级(明日完成)
|
||||
5. ✅ **业务逻辑细节** → 减少 ~2,000 个错误
|
||||
|
||||
**预计最终剩余错误**: 2,683 - 2,000 = **~683**
|
||||
|
||||
---
|
||||
|
||||
## 📋 具体修复 Checklist
|
||||
|
||||
### ☐ 1. Controller-Service 参数匹配
|
||||
- [ ] 修改 `controller-generator.js`
|
||||
- [ ] 添加 Service 方法签名读取逻辑
|
||||
- [ ] 根据参数类型生成正确的装饰器
|
||||
- [ ] 测试编译
|
||||
|
||||
### ☐ 2. Getter/Setter 转换
|
||||
- [ ] 在 `service-method-converter.js` 添加转换逻辑
|
||||
- [ ] 处理 `.getXxx()` → `.xxx`
|
||||
- [ ] 处理 `.setXxx(value)` → `.xxx = value`
|
||||
- [ ] 测试编译
|
||||
|
||||
### ☐ 3. Service 注入修复
|
||||
- [ ] 增强 `controller-generator.js` 依赖分析
|
||||
- [ ] 自动生成构造函数注入
|
||||
- [ ] 测试编译
|
||||
|
||||
### ☐ 4. 缺失方法修复
|
||||
- [ ] 检查 `java-scanner.js` 方法提取逻辑
|
||||
- [ ] 补充缺失的方法
|
||||
- [ ] 测试编译
|
||||
|
||||
### ☐ 5. 业务逻辑细节
|
||||
- [ ] 添加 `QueryWrapper` 转换器
|
||||
- [ ] 添加 `JSONArray` 转换器
|
||||
- [ ] 处理复杂表达式
|
||||
- [ ] 手动修复剩余错误
|
||||
|
||||
---
|
||||
|
||||
## 📈 预期进度
|
||||
|
||||
| 阶段 | 错误数 | 减少 | 完成率 |
|
||||
|------|--------|------|--------|
|
||||
| 当前 | 14,283 | - | 51.3% |
|
||||
| 第一轮(Controller+Getter) | 3,283 | 77% | 88.9% |
|
||||
| 第二轮(Service注入+方法) | 2,683 | 6% | 90.9% |
|
||||
| 第三轮(业务逻辑) | ~683 | 14% | 97.7% |
|
||||
| 手动修复 | 0 | 2.3% | 100% |
|
||||
|
||||
---
|
||||
|
||||
**生成时间**: 2025-10-29
|
||||
**工具版本**: Migration Tool V2
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
class GetterSetterConverter {
|
||||
/**
|
||||
* 转换Getter/Setter
|
||||
*
|
||||
* ✅ V2: 通用转换,支持所有 getXxx()/setXxx() 方法
|
||||
*/
|
||||
convert(javaCode) {
|
||||
let tsCode = javaCode;
|
||||
@@ -20,51 +22,24 @@ class GetterSetterConverter {
|
||||
// 【Getter】→ 属性访问
|
||||
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
// obj.getXxx() → obj.xxx
|
||||
// 只转换常见的属性名,避免转换业务方法
|
||||
const commonGetters = [
|
||||
'getId', 'getName', 'getTitle', 'getDesc', 'getType', 'getStatus',
|
||||
'getKey', 'getValue', 'getIcon', 'getCover', 'getUrl', 'getPath',
|
||||
'getPage', 'getLimit', 'getTotal', 'getRecords', 'getData',
|
||||
'getCreateTime', 'getUpdateTime', 'getDeleteTime',
|
||||
'getSiteId', 'getMemberId', 'getAdminId', 'getUserId',
|
||||
'getSearch', 'getKeyword', 'getFormId', 'getAction',
|
||||
'getFromVersion', 'getToVersion', 'getVersion',
|
||||
'getAppName', 'getAppDesc', 'getAppKey', 'getAppType', 'getAppLogo',
|
||||
'getWindowLogo', 'getConfig', 'getInfo', 'getList'
|
||||
];
|
||||
|
||||
commonGetters.forEach(getter => {
|
||||
const property = getter.replace(/^get/, '');
|
||||
// 通用模式:obj.getXxx() → obj.xxx
|
||||
// 匹配: (对象).get(首字母大写的属性名)()
|
||||
tsCode = tsCode.replace(/(\w+)\.get([A-Z]\w*)\(\)/g, (match, obj, property) => {
|
||||
// 将首字母转换为小写
|
||||
const propertyName = property.charAt(0).toLowerCase() + property.slice(1);
|
||||
|
||||
// obj.getXxx() → obj.xxx
|
||||
const regex = new RegExp(`(\\w+)\\.${getter}\\(\\)`, 'g');
|
||||
tsCode = tsCode.replace(regex, `$1.${propertyName}`);
|
||||
return `${obj}.${propertyName}`;
|
||||
});
|
||||
|
||||
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
// 【Setter】→ 属性赋值
|
||||
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
// obj.setXxx(value) → obj.xxx = value
|
||||
// 只转换常见的属性名
|
||||
const commonSetters = [
|
||||
'setId', 'setName', 'setTitle', 'setDesc', 'setType', 'setStatus',
|
||||
'setKey', 'setValue', 'setIcon', 'setCover', 'setUrl', 'setPath',
|
||||
'setCreateTime', 'setUpdateTime', 'setDeleteTime',
|
||||
'setSiteId', 'setMemberId', 'setAdminId', 'setUserId',
|
||||
'setAction', 'setFromVersion', 'setToVersion', 'setVersion',
|
||||
'setData', 'setError', 'setSupportApp'
|
||||
];
|
||||
|
||||
commonSetters.forEach(setter => {
|
||||
const property = setter.replace(/^set/, '');
|
||||
// 通用模式:obj.setXxx(value) → obj.xxx = value
|
||||
// 匹配: (对象).set(首字母大写的属性名)((参数))
|
||||
tsCode = tsCode.replace(/(\w+)\.set([A-Z]\w*)\(([^)]+)\)/g, (match, obj, property, value) => {
|
||||
// 将首字母转换为小写
|
||||
const propertyName = property.charAt(0).toLowerCase() + property.slice(1);
|
||||
|
||||
// obj.setXxx(value) → obj.xxx = value
|
||||
const regex = new RegExp(`(\\w+)\\.${setter}\\(([^)]+)\\)`, 'g');
|
||||
tsCode = tsCode.replace(regex, `$1.${propertyName} = $2`);
|
||||
return `${obj}.${propertyName} = ${value}`;
|
||||
});
|
||||
|
||||
return tsCode;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { BootModule } from '@wwjBoot';
|
||||
import { CommonModule } from './common.module';
|
||||
import { EntityModule } from './entity.module';
|
||||
import { ServiceModule } from './service.module';
|
||||
import { ControllerModule } from './controller.module';
|
||||
import { ListenerModule } from './listener.module';
|
||||
import { JobModule } from './job.module';
|
||||
|
||||
/**
|
||||
* AppModule - 主应用模块
|
||||
* 🚀 使用动态模块自动加载所有控制器和服务
|
||||
* 使用wwjcloud框架能力
|
||||
*/
|
||||
@Module({
|
||||
imports: [
|
||||
ConfigModule.forRoot({
|
||||
isGlobal: true,
|
||||
load: [() => ({
|
||||
// 使用sys_config.value(JSON)配置
|
||||
database: {
|
||||
type: 'mysql',
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: parseInt(process.env.DB_PORT || '3306'),
|
||||
username: process.env.DB_USERNAME || 'root',
|
||||
password: process.env.DB_PASSWORD || 'password',
|
||||
database: process.env.DB_DATABASE || 'database',
|
||||
synchronize: process.env.DB_SYNCHRONIZE === 'true',
|
||||
},
|
||||
redis: {
|
||||
host: process.env.REDIS_HOST || 'localhost',
|
||||
port: parseInt(process.env.REDIS_PORT || '6379'),
|
||||
password: process.env.REDIS_PASSWORD || '',
|
||||
}
|
||||
})]
|
||||
}),
|
||||
BootModule,
|
||||
TypeOrmModule.forRootAsync({
|
||||
useFactory: (configService) => configService.get('database'),
|
||||
inject: [ConfigService]
|
||||
}),
|
||||
CommonModule,
|
||||
EntityModule,
|
||||
ServiceModule.register(),
|
||||
ControllerModule.register(),
|
||||
ListenerModule,
|
||||
JobModule,
|
||||
],
|
||||
controllers: [],
|
||||
providers: [],
|
||||
})
|
||||
export class AppModule {}
|
||||
@@ -0,0 +1,74 @@
|
||||
import { Module, DynamicModule } from '@nestjs/common';
|
||||
import { ServiceModule } from './service.module';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
||||
/**
|
||||
* ControllerModule - 控制器模块
|
||||
* 🚀 使用动态导入自动加载所有控制器
|
||||
* 符合NestJS官方规范
|
||||
* 自动注册110个控制器
|
||||
*/
|
||||
@Module({})
|
||||
export class ControllerModule {
|
||||
static register(): DynamicModule {
|
||||
const controllers = this.loadAllControllers();
|
||||
|
||||
return {
|
||||
module: ControllerModule,
|
||||
imports: [ServiceModule.register()],
|
||||
controllers,
|
||||
providers: [],
|
||||
exports: [],
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 动态加载所有控制器
|
||||
*/
|
||||
private static loadAllControllers(): any[] {
|
||||
const controllers: any[] = [];
|
||||
const controllersDir = path.join(__dirname, 'controllers');
|
||||
|
||||
if (!fs.existsSync(controllersDir)) {
|
||||
return controllers;
|
||||
}
|
||||
|
||||
// 递归扫描所有.controller.ts文件
|
||||
this.scanDirectory(controllersDir, controllers);
|
||||
|
||||
return controllers;
|
||||
}
|
||||
|
||||
/**
|
||||
* 递归扫描目录
|
||||
*/
|
||||
private static scanDirectory(dir: string, controllers: any[]): void {
|
||||
const files = fs.readdirSync(dir);
|
||||
|
||||
for (const file of files) {
|
||||
const fullPath = path.join(dir, file);
|
||||
const stat = fs.statSync(fullPath);
|
||||
|
||||
if (stat.isDirectory()) {
|
||||
// 递归扫描子目录
|
||||
this.scanDirectory(fullPath, controllers);
|
||||
} else if (file.endsWith('.controller.ts') || file.endsWith('.controller.js')) {
|
||||
try {
|
||||
// 动态导入控制器
|
||||
const relativePath = path.relative(__dirname, fullPath).replace(/\\/g, '/').replace(/\.(ts|js)$/, '');
|
||||
const controllerModule = require(`./${relativePath}`);
|
||||
|
||||
// 获取导出的控制器类(通常是default或第一个export)
|
||||
const ControllerClass = controllerModule.default || Object.values(controllerModule)[0];
|
||||
|
||||
if (ControllerClass) {
|
||||
controllers.push(ControllerClass);
|
||||
}
|
||||
} catch (error) {
|
||||
console.warn(`⚠️ 加载控制器失败: ${fullPath}`, error.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AddonDevelopBuildServiceImplService } from '../../../services/admin/addon/impl/addon-develop-build-service-impl.service';
|
||||
import { AddonDevelopServiceImplService } from '../../../services/admin/addon/impl/addon-develop-service-impl.service';
|
||||
import { NiuCloudServiceImplService } from '../../../services/admin/niucloud/impl/niu-cloud-service-impl.service';
|
||||
|
||||
@Controller('adminapi/addon_develop')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class AddonDevelopController {
|
||||
constructor(
|
||||
private readonly addonDevelopBuildServiceImplService: AddonDevelopBuildServiceImplService,
|
||||
private readonly addonDevelopServiceImplService: AddonDevelopServiceImplService,
|
||||
private readonly niucloudServiceImplService: NiuCloudServiceImplService
|
||||
) {}
|
||||
@Post('build/:key')
|
||||
@ApiOperation({ summary: '/build/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBuildkey(@Body() body: Record<string, any>, @Param('key') key: string): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopBuildServiceImplService.build(body, key);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':key')
|
||||
@ApiOperation({ summary: '/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.info(key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post(':key')
|
||||
@ApiOperation({ summary: '/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postKey(@Body() body: Record<string, any>, @Param('key') key: string): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.add(body, key);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':key')
|
||||
@ApiOperation({ summary: '/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putKey(@Body() body: Record<string, any>, @Param('key') key: string): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.edit(body, key);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':key')
|
||||
@ApiOperation({ summary: '/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteKey(@Param('key') key: string): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.del(key);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('check/:key')
|
||||
@ApiOperation({ summary: '/check/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheckkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.checkKey(key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('key/blacklist')
|
||||
@ApiOperation({ summary: '/key/blacklist' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKeyblacklist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopBuildServiceImplService.download(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('download/:key')
|
||||
@ApiOperation({ summary: '/download/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDownloadkey(@Body() body: Record<string, any>, @Param('key') key: string): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopBuildServiceImplService.download(body, key);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AddonLogServiceImplService } from '../../../services/admin/addon/impl/addon-log-service-impl.service';
|
||||
|
||||
@Controller('api/addon_log')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class AddonLogController {
|
||||
constructor(
|
||||
private readonly addonLogServiceImplService: AddonLogServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('detail')
|
||||
@ApiOperation({ summary: '/detail' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDetail(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonLogServiceImplService.detail(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('add')
|
||||
@ApiOperation({ summary: '/add' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAdd(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonLogServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('del')
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonLogServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AddonServiceImplService } from '../../../services/admin/addon/impl/addon-service-impl.service';
|
||||
|
||||
@Controller('adminapi')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class AddonController {
|
||||
constructor(
|
||||
private readonly addonServiceImplService: AddonServiceImplService
|
||||
) {}
|
||||
@Get('addon/local')
|
||||
@ApiOperation({ summary: '/addon/local' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonlocal(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.getLocalAddonList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/list')
|
||||
@ApiOperation({ summary: '/addon/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/list/install')
|
||||
@ApiOperation({ summary: '/addon/list/install' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@Public()
|
||||
async getAddonlistinstall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/:id')
|
||||
@ApiOperation({ summary: '/addon/:id' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonid(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('addon/add')
|
||||
@ApiOperation({ summary: '/addon/add' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddonadd(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('addon/del')
|
||||
@ApiOperation({ summary: '/addon/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddondel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('addon/install/:addon')
|
||||
@ApiOperation({ summary: '/addon/install/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddoninstalladdon(@Body() body: Record<string, any>, @Param('addon') addon: string): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.install(body, addon);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('addon/cloudinstall/:addon')
|
||||
@ApiOperation({ summary: '/addon/cloudinstall/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddoncloudinstalladdon(@Body() body: Record<string, any>, @Param('addon') addon: string): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.install(body, addon);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/cloudinstall/:addon')
|
||||
@ApiOperation({ summary: '/addon/cloudinstall/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddoncloudinstalladdon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.cloudInstallLog(addon, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/install/check/:addon')
|
||||
@ApiOperation({ summary: '/addon/install/check/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddoninstallcheckaddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.installCheck(addon, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('addon/install/cancel/:addon')
|
||||
@ApiOperation({ summary: '/addon/install/cancel/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAddoninstallcanceladdon(@Body() body: Record<string, any>, @Param('addon') addon: string): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.cancleInstall(body, addon);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/installtask')
|
||||
@ApiOperation({ summary: '/addon/installtask' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddoninstalltask(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.getInstallTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('addon/uninstall/:addon')
|
||||
@ApiOperation({ summary: '/addon/uninstall/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddonuninstalladdon(@Body() body: Record<string, any>, @Param('addon') addon: string): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.uninstall(body, addon);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addon/uninstall/check/:addon')
|
||||
@ApiOperation({ summary: '/addon/uninstall/check/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonuninstallcheckaddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.uninstallCheck(addon, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addontype')
|
||||
@ApiOperation({ summary: '/addontype' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddontype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('addon/init')
|
||||
@ApiOperation({ summary: '/addon/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddoninit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('addon/download/:addon')
|
||||
@ApiOperation({ summary: '/addon/download/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddondownloadaddon(@Body() body: Record<string, any>, @Param('addon') addon: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AddonServiceImplService } from '../../../services/admin/addon/impl/addon-service-impl.service';
|
||||
|
||||
@Controller('adminapi')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class AppController {
|
||||
constructor(
|
||||
private readonly addonServiceImplService: AddonServiceImplService
|
||||
) {}
|
||||
@Get('app/getAddonList')
|
||||
@ApiOperation({ summary: '/app/getAddonList' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppgetAddonList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('app/index')
|
||||
@ApiOperation({ summary: '/app/index' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppindex(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysBackupRecordsServiceImplService } from '../../../services/admin/sys/impl/sys-backup-records-service-impl.service';
|
||||
|
||||
@Controller('adminapi/backup')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class BackupController {
|
||||
constructor(
|
||||
private readonly sysBackupRecordsServiceImplService: SysBackupRecordsServiceImplService
|
||||
) {}
|
||||
@Get('records')
|
||||
@ApiOperation({ summary: '/records' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRecords(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('delete')
|
||||
@ApiOperation({ summary: '/delete' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDelete(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('remark')
|
||||
@ApiOperation({ summary: '/remark' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putRemark(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.edit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('restore')
|
||||
@ApiOperation({ summary: '/restore' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postRestore(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.restore(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('manual')
|
||||
@ApiOperation({ summary: '/manual' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postManual(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.backup(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('task')
|
||||
@ApiOperation({ summary: '/task' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTask(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.getBackupTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('restore_task')
|
||||
@ApiOperation({ summary: '/restore_task' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRestoretask(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.getRestoreTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('check_dir')
|
||||
@ApiOperation({ summary: '/check_dir' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCheckdir(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.checkDir(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('check_permission')
|
||||
@ApiOperation({ summary: '/check_permission' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCheckpermission(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.checkPermission(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { UpgradeServiceImplService } from '../../../services/admin/upgrade/impl/upgrade-service-impl.service';
|
||||
import { SysUpgradeRecordsServiceImplService } from '../../../services/admin/sys/impl/sys-upgrade-records-service-impl.service';
|
||||
|
||||
@Controller('adminapi/upgrade')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class UpgradeController {
|
||||
constructor(
|
||||
private readonly upgradeServiceImplService: UpgradeServiceImplService,
|
||||
private readonly sysUpgradeRecordsServiceImplService: SysUpgradeRecordsServiceImplService
|
||||
) {}
|
||||
@Get('records')
|
||||
@ApiOperation({ summary: '/records' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRecords(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Delete('records')
|
||||
@ApiOperation({ summary: '/records' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteRecords(): Promise<Result<any>> {
|
||||
const result = await this.sysUpgradeRecordsServiceImplService.del();
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':addon')
|
||||
@ApiOperation({ summary: '/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('check')
|
||||
@ApiOperation({ summary: '/check' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheck(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('check/:addon')
|
||||
@ApiOperation({ summary: '/check/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheckaddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post(':addon')
|
||||
@ApiOperation({ summary: '/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddon(@Body() body: Record<string, any>, @Param('addon') addon: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('task')
|
||||
@ApiOperation({ summary: '/task' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTask(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.upgradeServiceImplService.execute(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('execute')
|
||||
@ApiOperation({ summary: '/execute' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postExecute(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.upgradeServiceImplService.execute(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('clear')
|
||||
@ApiOperation({ summary: '/clear' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postClear(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.upgradeServiceImplService.clearUpgradeTask(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('operate/:operate')
|
||||
@ApiOperation({ summary: '/operate/{operate}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postOperateoperate(@Body() body: Record<string, any>, @Param('operate') operate: string): Promise<Result<any>> {
|
||||
const result = await this.upgradeServiceImplService.operate(body, operate);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AliappConfigServiceImplService } from '../../../services/admin/aliapp/impl/aliapp-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/aliapp')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ConfigController {
|
||||
constructor(
|
||||
private readonly aliappConfigServiceImplService: AliappConfigServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.aliappConfigServiceImplService.getAliappConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.aliappConfigServiceImplService.setAliappConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('static')
|
||||
@ApiOperation({ summary: '/static' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatic(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysMenuServiceImplService } from '../../../services/admin/sys/impl/sys-menu-service-impl.service';
|
||||
import { AuthServiceImplService } from '../../../services/admin/auth/impl/auth-service-impl.service';
|
||||
import { SiteServiceImplService } from '../../../services/admin/site/impl/site-service-impl.service';
|
||||
import { LoginServiceImplService } from '../../../services/admin/auth/impl/login-service-impl.service';
|
||||
|
||||
@Controller('adminapi/auth')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class AuthController {
|
||||
constructor(
|
||||
private readonly sysMenuServiceImplService: SysMenuServiceImplService,
|
||||
private readonly authServiceImplService: AuthServiceImplService,
|
||||
private readonly siteServiceImplService: SiteServiceImplService,
|
||||
private readonly loginServiceImplService: LoginServiceImplService
|
||||
) {}
|
||||
@Get('authmenu')
|
||||
@ApiOperation({ summary: '/authmenu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAuthmenu(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authServiceImplService.getAuthMenuTreeList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('site')
|
||||
@ApiOperation({ summary: '/site' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSite(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('get')
|
||||
@ApiOperation({ summary: '/get' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authServiceImplService.getAuthUserInfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('tree')
|
||||
@ApiOperation({ summary: '/tree' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTree(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.menuTree(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('edit')
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authServiceImplService.editAuth(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('logout')
|
||||
@ApiOperation({ summary: '/logout' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putLogout(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.loginServiceImplService.logout(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AdminAppServiceImplService } from '../../../services/admin/channel/impl/admin-app-service-impl.service';
|
||||
import { CoreAppCloudServiceImplService } from '../../../services/core/channel/impl/core-app-cloud-service-impl.service';
|
||||
|
||||
@Controller('adminapi/channel/app')
|
||||
@ApiTags('API')
|
||||
export class AppController {
|
||||
constructor(
|
||||
private readonly adminAppServiceImplService: AdminAppServiceImplService,
|
||||
private readonly coreAppCloudServiceImplService: CoreAppCloudServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getAppConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.setAppConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('version')
|
||||
@ApiOperation({ summary: '/version' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getVersion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getVersionPage(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('version/:id')
|
||||
@ApiOperation({ summary: '/version/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getVersionid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getVersionInfo(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('version')
|
||||
@ApiOperation({ summary: '/version' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postVersion(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.addVersion(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('version/:id')
|
||||
@ApiOperation({ summary: '/version/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putVersionid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.editVersion(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('version/:id')
|
||||
@ApiOperation({ summary: '/version/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteVersionid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.delVersion(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('platfrom')
|
||||
@ApiOperation({ summary: '/platfrom' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPlatfrom(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getBuildLog(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('build/log/:key')
|
||||
@ApiOperation({ summary: '/build/log/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBuildlogkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getBuildLog(key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('version/:id/release')
|
||||
@ApiOperation({ summary: '/version/{id}/release' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putVersionidrelease(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.release(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('generate_sign_cert')
|
||||
@ApiOperation({ summary: '/generate_sign_cert' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postGeneratesigncert(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreAppCloudServiceImplService.generateSignCert(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CoreH5ServiceImplService } from '../../../services/core/channel/impl/core-h5-service-impl.service';
|
||||
|
||||
@Controller('adminapi/channel/h5')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class H5Controller {
|
||||
constructor(
|
||||
private readonly coreH5ServiceImplService: CoreH5ServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreH5ServiceImplService.getH5(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreH5ServiceImplService.setH5(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CorePcServiceImplService } from '../../../services/core/channel/impl/core-pc-service-impl.service';
|
||||
|
||||
@Controller('adminapi/channel/pc')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class PcController {
|
||||
constructor(
|
||||
private readonly corePcServiceImplService: CorePcServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.corePcServiceImplService.getPc(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.corePcServiceImplService.setPc(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DictServiceImplService } from '../../../services/admin/dict/impl/dict-service-impl.service';
|
||||
|
||||
@Controller('adminapi/dict')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class DictController {
|
||||
constructor(
|
||||
private readonly dictServiceImplService: DictServiceImplService
|
||||
) {}
|
||||
@Get('dict')
|
||||
@ApiOperation({ summary: '/dict' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDict(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('dict/:id')
|
||||
@ApiOperation({ summary: '/dict/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('dictionary/type/:type')
|
||||
@ApiOperation({ summary: 'dictionary/type/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictionarytypetype(@Param('type') type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.info(type, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('dict')
|
||||
@ApiOperation({ summary: '/dict' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDict(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('dict/:id')
|
||||
@ApiOperation({ summary: '/dict/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDictid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('dictionary/:id')
|
||||
@ApiOperation({ summary: '/dictionary/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDictionaryid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.addDictData(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('dict/:id')
|
||||
@ApiOperation({ summary: '/dict/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteDictid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('all')
|
||||
@ApiOperation({ summary: '/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAll(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.getAll(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyConfigServiceImplService } from '../../../services/admin/diy/impl/diy-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/diy')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ConfigController {
|
||||
constructor(
|
||||
private readonly diyConfigServiceImplService: DiyConfigServiceImplService
|
||||
) {}
|
||||
@Get('bottom')
|
||||
@ApiOperation({ summary: '/bottom' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBottom(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyConfigServiceImplService.getBottomList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('bottom/config')
|
||||
@ApiOperation({ summary: '/bottom/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBottomconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyConfigServiceImplService.getBottomConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('bottom')
|
||||
@ApiOperation({ summary: '/bottom' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBottom(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyConfigServiceImplService.setBottomConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyFormServiceImplService } from '../../../services/admin/diy_form/impl/diy-form-service-impl.service';
|
||||
import { DiyFormRecordsServiceImplService } from '../../../services/admin/diy_form/impl/diy-form-records-service-impl.service';
|
||||
import { DiyFormConfigServiceImplService } from '../../../services/admin/diy_form/impl/diy-form-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/diy')
|
||||
@ApiTags('API')
|
||||
export class DiyFormController {
|
||||
constructor(
|
||||
private readonly diyFormServiceImplService: DiyFormServiceImplService,
|
||||
private readonly diyFormRecordsServiceImplService: DiyFormRecordsServiceImplService,
|
||||
private readonly diyFormConfigServiceImplService: DiyFormConfigServiceImplService
|
||||
) {}
|
||||
@Get('form')
|
||||
@ApiOperation({ summary: '/form' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getForm(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getPage(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/:id')
|
||||
@ApiOperation({ summary: '/form/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getInfo(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('form')
|
||||
@ApiOperation({ summary: '/form' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postForm(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('form/:id')
|
||||
@ApiOperation({ summary: '/form/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('form/delete')
|
||||
@ApiOperation({ summary: '/form/delete' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormdelete(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/list')
|
||||
@ApiOperation({ summary: '/form/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/init')
|
||||
@ApiOperation({ summary: '/form/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getForminit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/template')
|
||||
@ApiOperation({ summary: '/form/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormtemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.modifyShare(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('form/share')
|
||||
@ApiOperation({ summary: '/form/share' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormshare(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.modifyShare(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('form/copy')
|
||||
@ApiOperation({ summary: '/form/copy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postFormcopy(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.copy(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/type')
|
||||
@ApiOperation({ summary: '/form/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormtype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getFormType(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('form/status')
|
||||
@ApiOperation({ summary: '/form/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormstatus(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.modifyStatus(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/records')
|
||||
@ApiOperation({ summary: '/form/records' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecords(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getRecordPages(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/records/:records_id')
|
||||
@ApiOperation({ summary: '/form/records/{records_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecordsrecordsid(@Param('records_id') records_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getRecordInfo(records_id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('form/records/delete')
|
||||
@ApiOperation({ summary: '/form/records/delete' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteFormrecordsdelete(): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.delRecord();
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/fields/list')
|
||||
@ApiOperation({ summary: '/form/fields/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormfieldslist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getFieldsList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/write/:form_id')
|
||||
@ApiOperation({ summary: '/form/write/{form_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormwriteformid(@Param('form_id') form_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormConfigServiceImplService.getWriteConfig(form_id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('form/write')
|
||||
@ApiOperation({ summary: '/form/write' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormwrite(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormConfigServiceImplService.editWriteConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/submit/:form_id')
|
||||
@ApiOperation({ summary: '/form/submit/{form_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormsubmitformid(@Param('form_id') form_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormConfigServiceImplService.getSubmitConfig(form_id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('form/submit')
|
||||
@ApiOperation({ summary: '/form/submit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormsubmit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormConfigServiceImplService.editSubmitConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/records/member/stat')
|
||||
@ApiOperation({ summary: '/form/records/member/stat' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecordsmemberstat(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormRecordsServiceImplService.getPage(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/records/field/stat')
|
||||
@ApiOperation({ summary: '/form/records/field/stat' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecordsfieldstat(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormRecordsServiceImplService.getFieldStatList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/qrcode')
|
||||
@ApiOperation({ summary: '/form/qrcode' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormqrcode(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getQrcode(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('form/select')
|
||||
@ApiOperation({ summary: '/form/select' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormselect(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyRouteServiceImplService } from '../../../services/admin/diy/impl/diy-route-service-impl.service';
|
||||
import { CoreAddonServiceImplService } from '../../../services/core/addon/impl/core-addon-service-impl.service';
|
||||
|
||||
@Controller('adminapi/diy/route')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class DiyRouteController {
|
||||
constructor(
|
||||
private readonly diyRouteServiceImplService: DiyRouteServiceImplService,
|
||||
private readonly coreAddonServiceImplService: CoreAddonServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyRouteServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('apps')
|
||||
@ApiOperation({ summary: '/apps' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getApps(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyRouteServiceImplService.getInfoByName(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('info')
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyRouteServiceImplService.getInfoByName(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('share')
|
||||
@ApiOperation({ summary: '/share' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putShare(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyRouteServiceImplService.modifyShare(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyThemeServiceImplService } from '../../../services/admin/diy/impl/diy-theme-service-impl.service';
|
||||
|
||||
@Controller('adminapi/diy/theme')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class DiyThemeController {
|
||||
constructor(
|
||||
private readonly diyThemeServiceImplService: DiyThemeServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.getDiyTheme(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.setDiyTheme(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('color')
|
||||
@ApiOperation({ summary: '/color' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getColor(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.getDefaultThemeColor(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('add')
|
||||
@ApiOperation({ summary: '/add' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAdd(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.addDiyTheme(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.editDiyTheme(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('delete/:id')
|
||||
@ApiOperation({ summary: '/delete/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.delDiyTheme(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyServiceImplService } from '../../../services/admin/diy/impl/diy-service-impl.service';
|
||||
import { CoreAddonServiceImplService } from '../../../services/core/addon/impl/core-addon-service-impl.service';
|
||||
|
||||
@Controller('adminapi/diy')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class DiyController {
|
||||
constructor(
|
||||
private readonly diyServiceImplService: DiyServiceImplService,
|
||||
private readonly coreAddonServiceImplService: CoreAddonServiceImplService
|
||||
) {}
|
||||
@Get('diy')
|
||||
@ApiOperation({ summary: '/diy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDiy(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.allList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('diy/:id')
|
||||
@ApiOperation({ summary: '/diy/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDiyid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreAddonServiceImplService.getInstallAddonList(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('diy')
|
||||
@ApiOperation({ summary: '/diy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDiy(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('diy/:id')
|
||||
@ApiOperation({ summary: '/diy/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDiyid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('diy/:id')
|
||||
@ApiOperation({ summary: '/diy/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteDiyid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('init')
|
||||
@ApiOperation({ summary: '/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getPageInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('apps')
|
||||
@ApiOperation({ summary: '/apps' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getApps(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getLink(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('link')
|
||||
@ApiOperation({ summary: '/link' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLink(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getLink(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('use/:id')
|
||||
@ApiOperation({ summary: '/use/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUseid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.setUse(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('template')
|
||||
@ApiOperation({ summary: '/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getTemplate(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('template/pages')
|
||||
@ApiOperation({ summary: '/template/pages' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplatepages(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('change')
|
||||
@ApiOperation({ summary: '/change' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putChange(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.changeTemplate(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('decorate')
|
||||
@ApiOperation({ summary: '/decorate' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDecorate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getDecoratePage(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('carousel_search')
|
||||
@ApiOperation({ summary: '/carousel_search' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCarouselsearch(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getPageByCarouselSearch(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('copy')
|
||||
@ApiOperation({ summary: '/copy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCopy(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.copy(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('page_link')
|
||||
@ApiOperation({ summary: '/page_link' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPagelink(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getPageLink(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { GenerateServiceImplService } from '../../../services/admin/generator/impl/generate-service-impl.service';
|
||||
|
||||
@Controller('adminapi/generator')
|
||||
@ApiTags('API')
|
||||
export class GenerateController {
|
||||
constructor(
|
||||
private readonly generateServiceImplService: GenerateServiceImplService
|
||||
) {}
|
||||
@Get('generator')
|
||||
@ApiOperation({ summary: '/generator' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getGenerator(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('generator/:id')
|
||||
@ApiOperation({ summary: '/generator/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getGeneratorid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.getInfo(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('generator')
|
||||
@ApiOperation({ summary: '/generator' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postGenerator(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.edit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('generator/:id')
|
||||
@ApiOperation({ summary: '/generator/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putGeneratorid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('generator/:id')
|
||||
@ApiOperation({ summary: '/generator/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteGeneratorid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('download')
|
||||
@ApiOperation({ summary: '/download' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDownload(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('table')
|
||||
@ApiOperation({ summary: '/table' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTable(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.preview(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('preview/:id')
|
||||
@ApiOperation({ summary: '/preview/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPreviewid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.preview(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('check_file')
|
||||
@ApiOperation({ summary: '/check_file' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheckfile(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.checkFile(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('table_column')
|
||||
@ApiOperation({ summary: '/table_column' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTablecolumn(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.getTableColumn(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('all_model')
|
||||
@ApiOperation({ summary: '/all_model' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAllmodel(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('model_table_column')
|
||||
@ApiOperation({ summary: '/model_table_column' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getModeltablecolumn(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AuthSiteServiceImplService } from '../../../services/admin/home/impl/auth-site-service-impl.service';
|
||||
|
||||
@Controller('adminapi/home')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SiteController {
|
||||
constructor(
|
||||
private readonly authSiteServiceImplService: AuthSiteServiceImplService
|
||||
) {}
|
||||
@Get('site')
|
||||
@ApiOperation({ summary: '/site' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSite(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('site/:id')
|
||||
@ApiOperation({ summary: '/site/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSiteid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authSiteServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('site/:id')
|
||||
@ApiOperation({ summary: '/site/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putSiteid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.authSiteServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('site/group')
|
||||
@ApiOperation({ summary: '/site/group' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSitegroup(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authSiteServiceImplService.getSiteGroup(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('site/create')
|
||||
@ApiOperation({ summary: '/site/create' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSitecreate(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authSiteServiceImplService.createSite(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('site/group/app_list')
|
||||
@ApiOperation({ summary: '/site/group/app_list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSitegroupapplist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
|
||||
@Controller('index')
|
||||
@ApiTags('API')
|
||||
export class IndexController {
|
||||
constructor() {}
|
||||
@Get('load')
|
||||
@ApiOperation({ summary: '/load' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLoad(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('test_pay')
|
||||
@ApiOperation({ summary: '/test_pay' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTestpay(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('test_enum')
|
||||
@ApiOperation({ summary: '/test_enum' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTestenum(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('test')
|
||||
@ApiOperation({ summary: '/test' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTest(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
|
||||
@Controller('adminapi/index')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class PromotionAdvController {
|
||||
constructor() {}
|
||||
@Get('adv_list')
|
||||
@ApiOperation({ summary: '/adv_list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAdvlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.corePromotionAdvServiceImplService.getIndexAdvList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CoreCaptchaImgServiceImplService } from '../../../services/core/captcha/impl/core-captcha-img-service-impl.service';
|
||||
|
||||
@Controller('adminapi/captcha')
|
||||
@ApiTags('API')
|
||||
@Public()
|
||||
export class CaptchaController {
|
||||
constructor(
|
||||
private readonly coreCaptchaImgServiceImplService: CoreCaptchaImgServiceImplService
|
||||
) {}
|
||||
@Get('create')
|
||||
@ApiOperation({ summary: '/create' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCreate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreCaptchaImgServiceImplService.create(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('check')
|
||||
@ApiOperation({ summary: '/check' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheck(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreCaptchaImgServiceImplService.check(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { ConfigServiceImplService } from '../../../services/admin/auth/impl/config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/config/')
|
||||
@ApiTags('API')
|
||||
export class ConfigController {
|
||||
constructor(
|
||||
private readonly configServiceImplService: ConfigServiceImplService
|
||||
) {}
|
||||
@Get('login')
|
||||
@ApiOperation({ summary: '/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLogin(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.configServiceImplService.getLoginConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('login')
|
||||
@ApiOperation({ summary: '/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putLogin(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.configServiceImplService.setLoginConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { LoginServiceImplService } from '../../../services/admin/auth/impl/login-service-impl.service';
|
||||
import { ConfigServiceImplService } from '../../../services/admin/auth/impl/config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/login')
|
||||
@ApiTags('API')
|
||||
@Public()
|
||||
export class LoginController {
|
||||
constructor(
|
||||
private readonly loginServiceImplService: LoginServiceImplService,
|
||||
private readonly configServiceImplService: ConfigServiceImplService
|
||||
) {}
|
||||
@Get(':appType')
|
||||
@ApiOperation({ summary: '/{appType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppType(@Param('appType') appType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.loginServiceImplService.login(appType, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: 'config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.configServiceImplService.getLoginConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberAccountServiceImplService } from '../../../services/admin/member/impl/member-account-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member/account')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberAccountController {
|
||||
constructor(
|
||||
private readonly memberAccountServiceImplService: MemberAccountServiceImplService
|
||||
) {}
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('point')
|
||||
@ApiOperation({ summary: '/point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPoint(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('balance')
|
||||
@ApiOperation({ summary: '/balance' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBalance(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('money')
|
||||
@ApiOperation({ summary: '/money' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMoney(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('growth')
|
||||
@ApiOperation({ summary: '/growth' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getGrowth(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('commission')
|
||||
@ApiOperation({ summary: '/commission' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCommission(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('point')
|
||||
@ApiOperation({ summary: '/point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postPoint(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.adjustPoint(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('balance')
|
||||
@ApiOperation({ summary: '/balance' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBalance(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.adjustBalance(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('sum_commission')
|
||||
@ApiOperation({ summary: '/sum_commission' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSumcommission(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.sumCommission(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('sum_point')
|
||||
@ApiOperation({ summary: '/sum_point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSumpoint(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.sumPoint(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('sum_balance')
|
||||
@ApiOperation({ summary: '/sum_balance' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSumbalance(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.sumBalance(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('change_type/:account_type')
|
||||
@ApiOperation({ summary: '/change_type/{account_type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getChangetypeaccounttype(@Param('account_type') account_type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberAddressServiceImplService } from '../../../services/admin/member/impl/member-address-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member/address')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberAddressController {
|
||||
constructor(
|
||||
private readonly memberAddressServiceImplService: MemberAddressServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAddressServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAddressServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAddressServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberAddressServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberAddressServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberCashOutServiceImplService } from '../../../services/admin/member/impl/member-cash-out-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member/cash_out')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberCashOutController {
|
||||
constructor(
|
||||
private readonly memberCashOutServiceImplService: MemberCashOutServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.pages(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('status')
|
||||
@ApiOperation({ summary: '/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatus(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('audit/:id/:action')
|
||||
@ApiOperation({ summary: '/audit/{id}/{action}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAuditidaction(@Body() body: Record<string, any>, @Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.audit(body, params);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('cancel/:id')
|
||||
@ApiOperation({ summary: '/cancel/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putCancelid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.cancel(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('remark/:id')
|
||||
@ApiOperation({ summary: '/remark/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putRemarkid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.remark(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('transfertype')
|
||||
@ApiOperation({ summary: '/transfertype' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTransfertype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('transfer/:id')
|
||||
@ApiOperation({ summary: '/transfer/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putTransferid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.transfer(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('stat')
|
||||
@ApiOperation({ summary: '/stat' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStat(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.stat(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('check/:id')
|
||||
@ApiOperation({ summary: '/check/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putCheckid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.checkTransferStatus(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberConfigServiceImplService } from '../../../services/admin/member/impl/member-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member/config')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberConfigController {
|
||||
constructor(
|
||||
private readonly memberConfigServiceImplService: MemberConfigServiceImplService
|
||||
) {}
|
||||
@Get('login')
|
||||
@ApiOperation({ summary: '/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLogin(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.getLoginConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('login')
|
||||
@ApiOperation({ summary: '/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postLogin(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.setLoginConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('cash_out')
|
||||
@ApiOperation({ summary: '/cash_out' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashout(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.getCashOutConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('cash_out')
|
||||
@ApiOperation({ summary: '/cash_out' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCashout(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.setCashOutConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('member')
|
||||
@ApiOperation({ summary: '/member' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMember(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.getMemberConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('member')
|
||||
@ApiOperation({ summary: '/member' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMember(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.setMemberConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('growth_rule')
|
||||
@ApiOperation({ summary: '/growth_rule' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getGrowthrule(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.getGrowthRuleConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('growth_rule')
|
||||
@ApiOperation({ summary: '/growth_rule' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postGrowthrule(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.setGrowthRuleConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('point_rule')
|
||||
@ApiOperation({ summary: '/point_rule' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPointrule(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.getPointRuleConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('point_rule')
|
||||
@ApiOperation({ summary: '/point_rule' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postPointrule(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberConfigServiceImplService.setPointRuleConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberLabelServiceImplService } from '../../../services/admin/member/impl/member-label-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberLabelController {
|
||||
constructor(
|
||||
private readonly memberLabelServiceImplService: MemberLabelServiceImplService
|
||||
) {}
|
||||
@Get('label')
|
||||
@ApiOperation({ summary: '/label' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLabel(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('label/:id')
|
||||
@ApiOperation({ summary: '/label/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLabelid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('label')
|
||||
@ApiOperation({ summary: '/label' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postLabel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('label/:id')
|
||||
@ApiOperation({ summary: '/label/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putLabelid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('label/:id')
|
||||
@ApiOperation({ summary: '/label/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteLabelid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('label/all')
|
||||
@ApiOperation({ summary: '/label/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLabelall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberLevelServiceImplService } from '../../../services/admin/member/impl/member-level-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member/level')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberLevelController {
|
||||
constructor(
|
||||
private readonly memberLevelServiceImplService: MemberLevelServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('all')
|
||||
@ApiOperation({ summary: '/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAll(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberSignServiceImplService } from '../../../services/admin/member/impl/member-sign-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member/sign')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberSignController {
|
||||
constructor(
|
||||
private readonly memberSignServiceImplService: MemberSignServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberSignServiceImplService.pages(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberSignServiceImplService.getSignConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberSignServiceImplService.setSignConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberServiceImplService } from '../../../services/admin/member/impl/member-service-impl.service';
|
||||
|
||||
@Controller('adminapi/member')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberController {
|
||||
constructor(
|
||||
private readonly memberServiceImplService: MemberServiceImplService
|
||||
) {}
|
||||
@Get('member')
|
||||
@ApiOperation({ summary: '/member' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMember(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('member/list')
|
||||
@ApiOperation({ summary: '/member/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMemberlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('member/:id')
|
||||
@ApiOperation({ summary: '/member/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMemberid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('member')
|
||||
@ApiOperation({ summary: '/member' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMember(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('member/:member_id')
|
||||
@ApiOperation({ summary: '/member/{member_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putMembermemberid(@Body() body: Record<string, any>, @Param('member_id') member_id: string): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.edit(body, member_id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('member/modify/:member_id/:field')
|
||||
@ApiOperation({ summary: '/member/modify/{member_id}/{field}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putMembermodifymemberidfield(@Body() body: Record<string, any>, @Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.modify(body, params);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('member/:member_id')
|
||||
@ApiOperation({ summary: '/member/{member_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteMembermemberid(@Param('member_id') member_id: string): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.del(member_id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('memberno')
|
||||
@ApiOperation({ summary: '/memberno' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMemberno(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.getMemberNo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('registertype')
|
||||
@ApiOperation({ summary: '/registertype' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRegistertype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('register/channel')
|
||||
@ApiOperation({ summary: '/register/channel' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRegisterchannel(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('status/list')
|
||||
@ApiOperation({ summary: '/status/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatuslist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('setstatus/:status')
|
||||
@ApiOperation({ summary: '/setstatus/{status}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putSetstatusstatus(@Body() body: Record<string, any>, @Param('status') status: string): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.setStatus(body, status);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('dict/benefits')
|
||||
@ApiOperation({ summary: '/dict/benefits' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictbenefits(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('dict/gift')
|
||||
@ApiOperation({ summary: '/dict/gift' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictgift(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('dict/growth_rule')
|
||||
@ApiOperation({ summary: '/dict/growth_rule' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictgrowthrule(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('dict/point_rule')
|
||||
@ApiOperation({ summary: '/dict/point_rule' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictpointrule(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('gifts/content')
|
||||
@ApiOperation({ summary: '/gifts/content' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postGiftscontent(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.getMemberGiftsContent(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('benefits/content')
|
||||
@ApiOperation({ summary: '/benefits/content' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBenefitscontent(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.getMemberBenefitsContent(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('member/batch_modify')
|
||||
@ApiOperation({ summary: '/member/batch_modify' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMemberbatchmodify(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.batchModify(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CloudBuildServiceImplService } from '../../../services/admin/niucloud/impl/cloud-build-service-impl.service';
|
||||
|
||||
@Controller('adminapi/niucloud')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class CloudController {
|
||||
constructor(
|
||||
private readonly cloudBuildServiceImplService: CloudBuildServiceImplService
|
||||
) {}
|
||||
@Get('build')
|
||||
@ApiOperation({ summary: '/build' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBuild(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.cloudBuildServiceImplService.getBuildTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('build')
|
||||
@ApiOperation({ summary: '/build' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBuild(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.cloudBuildServiceImplService.build(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('build/log')
|
||||
@ApiOperation({ summary: '/build/log' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBuildlog(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.cloudBuildServiceImplService.getBuildLog(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('build/clear')
|
||||
@ApiOperation({ summary: '/build/clear' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBuildclear(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.cloudBuildServiceImplService.clearBuildTask(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('build/check')
|
||||
@ApiOperation({ summary: '/build/check' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBuildcheck(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.cloudBuildServiceImplService.buildPreCheck(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('build/get_local_url')
|
||||
@ApiOperation({ summary: '/build/get_local_url' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBuildgetlocalurl(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('build/set_local_url')
|
||||
@ApiOperation({ summary: '/build/set_local_url' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBuildsetlocalurl(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('build/connect_test')
|
||||
@ApiOperation({ summary: '/build/connect_test' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBuildconnecttest(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { NiuCloudServiceImplService } from '../../../services/admin/niucloud/impl/niu-cloud-service-impl.service';
|
||||
|
||||
@Controller('adminapi/niucloud')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ModuleController {
|
||||
constructor(
|
||||
private readonly niucloudServiceImplService: NiuCloudServiceImplService
|
||||
) {}
|
||||
@Get('framework/newversion')
|
||||
@ApiOperation({ summary: '/framework/newversion' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFrameworknewversion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.getFrameworkLastVersion(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('framework/version/list')
|
||||
@ApiOperation({ summary: '/framework/version/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFrameworkversionlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.getFrameworkVersionList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('authinfo')
|
||||
@ApiOperation({ summary: '/authinfo' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAuthinfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.getAuthinfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('authinfo')
|
||||
@ApiOperation({ summary: '/authinfo' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAuthinfo(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.setAuthorize(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('app_version/list')
|
||||
@ApiOperation({ summary: '/app_version/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppversionlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.getAppVersionList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { NuiSmsServiceImplService } from '../../../services/admin/notice/impl/nui-sms-service-impl.service';
|
||||
|
||||
@Controller('adminapi/notice/niusms')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class NiuSmsController {
|
||||
constructor(
|
||||
private readonly nuiSmsServiceImplService: NuiSmsServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('sign/report/config')
|
||||
@ApiOperation({ summary: '/sign/report/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSignreportconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.nuiSmsServiceImplService.captcha(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('captcha')
|
||||
@ApiOperation({ summary: '/captcha' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCaptcha(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.nuiSmsServiceImplService.captcha(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('send')
|
||||
@ApiOperation({ summary: '/send' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSend(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('account/register')
|
||||
@ApiOperation({ summary: '/account/register' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAccountregister(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('account/login')
|
||||
@ApiOperation({ summary: '/account/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAccountlogin(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('account/reset/password/:username')
|
||||
@ApiOperation({ summary: '/account/reset/password/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAccountresetpasswordusername(@Body() body: Record<string, any>, @Param('username') username: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/info/:username')
|
||||
@ApiOperation({ summary: '/account/info/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountinfousername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('template/report/config')
|
||||
@ApiOperation({ summary: '/template/report/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplatereportconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('template/list/:smsType/:username')
|
||||
@ApiOperation({ summary: '/template/list/{smsType}/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplatelistsmsTypeusername(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('order/list/:username')
|
||||
@ApiOperation({ summary: '/order/list/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getOrderlistusername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/send_list/:username')
|
||||
@ApiOperation({ summary: '/account/send_list/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountsendlistusername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('enable')
|
||||
@ApiOperation({ summary: '/enable' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putEnable(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('account/edit/:username')
|
||||
@ApiOperation({ summary: '/account/edit/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAccounteditusername(@Body() body: Record<string, any>, @Param('username') username: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('sign/list/:username')
|
||||
@ApiOperation({ summary: '/sign/list/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSignlistusername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('sign/delete/:username')
|
||||
@ApiOperation({ summary: '/sign/delete/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSigndeleteusername(@Body() body: Record<string, any>, @Param('username') username: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('sign/report/:username')
|
||||
@ApiOperation({ summary: '/sign/report/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSignreportusername(@Body() body: Record<string, any>, @Param('username') username: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('packages')
|
||||
@ApiOperation({ summary: 'packages' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPackages(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('order/calculate/:username')
|
||||
@ApiOperation({ summary: '/order/calculate/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postOrdercalculateusername(@Body() body: Record<string, any>, @Param('username') username: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('order/create/:username')
|
||||
@ApiOperation({ summary: '/order/create/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postOrdercreateusername(@Body() body: Record<string, any>, @Param('username') username: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('order/pay/:username')
|
||||
@ApiOperation({ summary: '/order/pay/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getOrderpayusername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('order/info/:username')
|
||||
@ApiOperation({ summary: '/order/info/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getOrderinfousername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('order/status/:username')
|
||||
@ApiOperation({ summary: '/order/status/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getOrderstatususername(@Param('username') username: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('template/sync/:smsType/:username')
|
||||
@ApiOperation({ summary: '/template/sync/{smsType}/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplatesyncsmsTypeusername(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('template/report/:smsType/:username')
|
||||
@ApiOperation({ summary: '/template/report/{smsType}/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postTemplatereportsmsTypeusername(@Body() body: Record<string, any>, @Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Delete('template/:username/:templateId')
|
||||
@ApiOperation({ summary: '/template/{username}/{templateId}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteTemplateusernametemplateId(@Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('template/info/:smsType/:username')
|
||||
@ApiOperation({ summary: '/template/info/{smsType}/{username}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplateinfosmsTypeusername(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysNoticeLogServiceImplService } from '../../../services/admin/sys/impl/sys-notice-log-service-impl.service';
|
||||
|
||||
@Controller('adminapi/notice/log')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class NoticeLogController {
|
||||
constructor(
|
||||
private readonly sysNoticeLogServiceImplService: SysNoticeLogServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeLogServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysNoticeSmsLogServiceImplService } from '../../../services/admin/sys/impl/sys-notice-sms-log-service-impl.service';
|
||||
|
||||
@Controller('adminapi/notice/sms/log')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class NoticeSmsLogController {
|
||||
constructor(
|
||||
private readonly sysNoticeSmsLogServiceImplService: SysNoticeSmsLogServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeSmsLogServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { NoticeServiceImplService } from '../../../services/admin/notice/impl/notice-service-impl.service';
|
||||
|
||||
@Controller('adminapi/notice')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class NoticeController {
|
||||
constructor(
|
||||
private readonly noticeServiceImplService: NoticeServiceImplService
|
||||
) {}
|
||||
@Get('notice')
|
||||
@ApiOperation({ summary: '/notice' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getNotice(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.noticeServiceImplService.getAddonList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('notice/:key')
|
||||
@ApiOperation({ summary: '/notice/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getNoticekey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.noticeServiceImplService.getInfo(key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('notice/edit')
|
||||
@ApiOperation({ summary: '/notice/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postNoticeedit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.smsServiceImplService.getList(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('notice/sms')
|
||||
@ApiOperation({ summary: '/notice/sms' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getNoticesms(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.smsServiceImplService.getList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('notice/sms/:sms_type')
|
||||
@ApiOperation({ summary: '/notice/sms/{sms_type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getNoticesmssmstype(@Param('sms_type') sms_type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.smsServiceImplService.getConfig(sms_type, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('notice/sms/:sms_type')
|
||||
@ApiOperation({ summary: '/notice/sms/{sms_type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putNoticesmssmstype(@Body() body: Record<string, any>, @Param('sms_type') sms_type: string): Promise<Result<any>> {
|
||||
const result = await this.noticeServiceImplService.editMessageStatus(body, sms_type);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('notice/editstatus')
|
||||
@ApiOperation({ summary: '/notice/editstatus' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postNoticeeditstatus(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.noticeServiceImplService.editMessageStatus(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { PayChannelServiceImplService } from '../../../services/admin/pay/impl/pay-channel-service-impl.service';
|
||||
|
||||
@Controller('adminapi/pay')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class PayChannelController {
|
||||
constructor(
|
||||
private readonly payChannelServiceImplService: PayChannelServiceImplService
|
||||
) {}
|
||||
@Get('channel/lists')
|
||||
@ApiOperation({ summary: '/channel/lists' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getChannellists(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('type/all')
|
||||
@ApiOperation({ summary: '/type/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTypeall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('channel/set/all')
|
||||
@ApiOperation({ summary: '/channel/set/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postChannelsetall(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payChannelServiceImplService.set(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('channel/set/:channel/:type')
|
||||
@ApiOperation({ summary: '/channel/set/{channel}/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postChannelsetchanneltype(@Body() body: Record<string, any>, @Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
const result = await this.payChannelServiceImplService.set(body, params);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('channel/lists/:channel')
|
||||
@ApiOperation({ summary: '/channel/lists/{channel}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getChannellistschannel(@Param('channel') channel: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payChannelServiceImplService.getListByChannel(channel, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('channel/set/transfer')
|
||||
@ApiOperation({ summary: '/channel/set/transfer' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postChannelsettransfer(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payChannelServiceImplService.setTransfer(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { PayRefundServiceImplService } from '../../../services/admin/pay/impl/pay-refund-service-impl.service';
|
||||
|
||||
@Controller('adminapi/pay/refund')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class PayRefundController {
|
||||
constructor(
|
||||
private readonly payRefundServiceImplService: PayRefundServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payRefundServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':refund_no')
|
||||
@ApiOperation({ summary: '/{refund_no}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRefundno(@Param('refund_no') refund_no: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payRefundServiceImplService.info(refund_no, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payRefundServiceImplService.transfer(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('transfer')
|
||||
@ApiOperation({ summary: '/transfer' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postTransfer(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payRefundServiceImplService.transfer(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('status')
|
||||
@ApiOperation({ summary: '/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatus(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { PayTransferServiceImplService } from '../../../services/admin/pay/impl/pay-transfer-service-impl.service';
|
||||
|
||||
@Controller('adminapi/pay')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class PayTransferController {
|
||||
constructor(
|
||||
private readonly payTransferServiceImplService: PayTransferServiceImplService
|
||||
) {}
|
||||
@Get('transfer_scene')
|
||||
@ApiOperation({ summary: '/transfer_scene' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTransferscene(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('transfer_scene/set_scene_id/:scene')
|
||||
@ApiOperation({ summary: '/transfer_scene/set_scene_id/{scene}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postTransferscenesetsceneidscene(@Body() body: Record<string, any>, @Param('scene') scene: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('transfer_scene/set_trade_scene/:type')
|
||||
@ApiOperation({ summary: '/transfer_scene/set_trade_scene/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postTransferscenesettradescenetype(@Body() body: Record<string, any>, @Param('type') type: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { PayServiceImplService } from '../../../services/admin/pay/impl/pay-service-impl.service';
|
||||
|
||||
@Controller('adminapi/pay')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class PayController {
|
||||
constructor(
|
||||
private readonly payServiceImplService: PayServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('info')
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('add')
|
||||
@ApiOperation({ summary: '/add' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAdd(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('edit')
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.edit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('del')
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('friendspay/info/:trade_type/:trade_id/:channel')
|
||||
@ApiOperation({ summary: '/friendspay/info/{trade_type}/{trade_id}/{channel}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFriendspayinfotradetypetradeidchannel(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('type/list')
|
||||
@ApiOperation({ summary: '/type/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTypelist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SiteAccountLogServiceImplService } from '../../../services/admin/site/impl/site-account-log-service-impl.service';
|
||||
|
||||
@Controller('adminapi/site/account')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SiteAccountLogController {
|
||||
constructor(
|
||||
private readonly siteAccountLogServiceImplService: SiteAccountLogServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteAccountLogServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('stat')
|
||||
@ApiOperation({ summary: '/stat' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStat(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SiteGroupServiceImplService } from '../../../services/admin/site/impl/site-group-service-impl.service';
|
||||
|
||||
@Controller('adminapi/site/group')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SiteGroupController {
|
||||
constructor(
|
||||
private readonly siteGroupServiceImplService: SiteGroupServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('all')
|
||||
@ApiOperation({ summary: '/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAll(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.getAll(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('user')
|
||||
@ApiOperation({ summary: '/user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUser(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.getUserSiteGroupAll(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('test')
|
||||
@ApiOperation({ summary: '/test' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTest(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SiteServiceImplService } from '../../../services/admin/site/impl/site-service-impl.service';
|
||||
import { AuthServiceImplService } from '../../../services/admin/auth/impl/auth-service-impl.service';
|
||||
|
||||
@Controller('adminapi/site')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SiteController {
|
||||
constructor(
|
||||
private readonly siteServiceImplService: SiteServiceImplService,
|
||||
private readonly authServiceImplService: AuthServiceImplService
|
||||
) {}
|
||||
@Get('site')
|
||||
@ApiOperation({ summary: '/site' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSite(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('site/:id')
|
||||
@ApiOperation({ summary: '/site/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSiteid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('site')
|
||||
@ApiOperation({ summary: '/site' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSite(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('site/:id')
|
||||
@ApiOperation({ summary: '/site/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putSiteid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('site/:id')
|
||||
@ApiOperation({ summary: '/site/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteSiteid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('closesite/:id')
|
||||
@ApiOperation({ summary: '/closesite/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putClosesiteid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.closeSite(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('opensite/:id')
|
||||
@ApiOperation({ summary: '/opensite/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putOpensiteid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.openSite(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('statuslist')
|
||||
@ApiOperation({ summary: '/statuslist' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatuslist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authServiceImplService.getAuthMenuTreeList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('site/menu')
|
||||
@ApiOperation({ summary: '/site/menu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSitemenu(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.authServiceImplService.getAuthMenuTreeList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('addons')
|
||||
@ApiOperation({ summary: '/addons' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddons(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.getSiteAddons(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('showApp')
|
||||
@ApiOperation({ summary: '/showApp' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getShowApp(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('showMarketing')
|
||||
@ApiOperation({ summary: '/showMarketing' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getShowMarketing(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('allow_change')
|
||||
@ApiOperation({ summary: '/allow_change' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAllowchange(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('allow_change')
|
||||
@ApiOperation({ summary: '/allow_change' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAllowchange(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('captcha/create')
|
||||
@ApiOperation({ summary: '/captcha/create' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCaptchacreate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.siteInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('init')
|
||||
@ApiOperation({ summary: '/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postInit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.siteInit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('special_menu')
|
||||
@ApiOperation({ summary: '/special_menu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSpecialmenu(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('showCustomer')
|
||||
@ApiOperation({ summary: '/showCustomer' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getShowCustomer(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysUserLogServiceImplService } from '../../../services/admin/sys/impl/sys-user-log-service-impl.service';
|
||||
|
||||
@Controller('adminapi/site/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class UserLogController {
|
||||
constructor(
|
||||
private readonly sysUserLogServiceImplService: SysUserLogServiceImplService
|
||||
) {}
|
||||
@Get('log')
|
||||
@ApiOperation({ summary: '/log' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLog(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('log/:id')
|
||||
@ApiOperation({ summary: '/log/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLogid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserLogServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('log/destroy')
|
||||
@ApiOperation({ summary: '/log/destroy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteLogdestroy(): Promise<Result<any>> {
|
||||
const result = await this.sysUserLogServiceImplService.destroy();
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SiteUserServiceImplService } from '../../../services/admin/site/impl/site-user-service-impl.service';
|
||||
|
||||
@Controller('adminapi/site/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class UserController {
|
||||
constructor(
|
||||
private readonly siteUserServiceImplService: SiteUserServiceImplService
|
||||
) {}
|
||||
@Get('user')
|
||||
@ApiOperation({ summary: 'user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUser(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('user')
|
||||
@ApiOperation({ summary: 'user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postUser(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('user/:uid')
|
||||
@ApiOperation({ summary: 'user/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUseruid(@Param('uid') uid: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.getInfo(uid, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('user/:uid')
|
||||
@ApiOperation({ summary: 'user/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUseruid(@Body() body: Record<string, any>, @Param('uid') uid: string): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.edit(body, uid);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('user/lock/:uid')
|
||||
@ApiOperation({ summary: 'user/lock/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUserlockuid(@Body() body: Record<string, any>, @Param('uid') uid: string): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.lock(body, uid);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('user/unlock/:uid')
|
||||
@ApiOperation({ summary: 'user/unlock/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUserunlockuid(@Body() body: Record<string, any>, @Param('uid') uid: string): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.unlock(body, uid);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('user/:uid')
|
||||
@ApiOperation({ summary: 'user/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteUseruid(@Param('uid') uid: string): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.delete(uid);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { StatHourServiceImplService } from '../../../services/admin/stat/impl/stat-hour-service-impl.service';
|
||||
|
||||
@Controller('adminapi/hour')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class StatHourController {
|
||||
constructor(
|
||||
private readonly statHourServiceImplService: StatHourServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('info')
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('add')
|
||||
@ApiOperation({ summary: '/add' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAdd(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('edit')
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.edit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('del')
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { StatServiceImplService } from '../../../services/admin/stat/impl/stat-service-impl.service';
|
||||
|
||||
@Controller('adminapi/stat')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class StatController {
|
||||
constructor(
|
||||
private readonly statServiceImplService: StatServiceImplService
|
||||
) {}
|
||||
@Get('index')
|
||||
@ApiOperation({ summary: '/index' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getIndex(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statServiceImplService.getIndexData(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysAgreementServiceImplService } from '../../../services/admin/sys/impl/sys-agreement-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysAgreementController {
|
||||
constructor(
|
||||
private readonly sysAgreementServiceImplService: SysAgreementServiceImplService
|
||||
) {}
|
||||
@Get('agreement')
|
||||
@ApiOperation({ summary: '/agreement' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAgreement(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAgreementServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('agreement/:key')
|
||||
@ApiOperation({ summary: '/agreement/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAgreementkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAgreementServiceImplService.getAgreement(key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('agreement/:key')
|
||||
@ApiOperation({ summary: '/agreement/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAgreementkey(@Body() body: Record<string, any>, @Param('key') key: string): Promise<Result<any>> {
|
||||
const result = await this.sysAgreementServiceImplService.setAgreement(body, key);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysAreaServiceImplService } from '../../../services/admin/sys/impl/sys-area-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/area')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysAreaController {
|
||||
constructor(
|
||||
private readonly sysAreaServiceImplService: SysAreaServiceImplService
|
||||
) {}
|
||||
@Get('list_by_pid/:pid')
|
||||
@ApiOperation({ summary: '/list_by_pid/{pid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getListbypidpid(@Param('pid') pid: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAreaServiceImplService.getListByPid(pid, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('tree/:level')
|
||||
@ApiOperation({ summary: '/tree/{level}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTreelevel(@Param('level') level: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAreaServiceImplService.getAreaTree(level, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('code/:code')
|
||||
@ApiOperation({ summary: '/code/{code}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCodecode(@Param('code') code: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAreaServiceImplService.getAddressInfo(code, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('contrary')
|
||||
@ApiOperation({ summary: '/contrary' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getContrary(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAreaServiceImplService.getAddressInfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('get_info')
|
||||
@ApiOperation({ summary: '/get_info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getinfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAreaServiceImplService.getAddress(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysAttachmentServiceImplService } from '../../../services/admin/sys/impl/sys-attachment-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysAttachmentController {
|
||||
constructor(
|
||||
private readonly sysAttachmentServiceImplService: SysAttachmentServiceImplService
|
||||
) {}
|
||||
@Get('attachment')
|
||||
@ApiOperation({ summary: '/attachment' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAttachment(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('attachment/del')
|
||||
@ApiOperation({ summary: '/attachment/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteAttachmentdel(): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.del();
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('attachment/batchmove')
|
||||
@ApiOperation({ summary: '/attachment/batchmove' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAttachmentbatchmove(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.batchMoveCategory(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('image')
|
||||
@ApiOperation({ summary: '/image' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postImage(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.image(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('video')
|
||||
@ApiOperation({ summary: '/video' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postVideo(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.video(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('document/:type')
|
||||
@ApiOperation({ summary: '/document/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDocumenttype(@Body() body: Record<string, any>, @Param('type') type: string): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.document(body, type);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('attachment/category')
|
||||
@ApiOperation({ summary: '/attachment/category' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAttachmentcategory(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.getCategoryList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('attachment/category')
|
||||
@ApiOperation({ summary: '/attachment/category' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAttachmentcategory(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.addCategory(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('attachment/category/:id')
|
||||
@ApiOperation({ summary: '/attachment/category/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAttachmentcategoryid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.editCategory(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('attachment/category/:id')
|
||||
@ApiOperation({ summary: '/attachment/category/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteAttachmentcategoryid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.delCategory(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('attachment/icon_category')
|
||||
@ApiOperation({ summary: 'attachment/icon_category' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAttachmenticoncategory(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('attachment/icon')
|
||||
@ApiOperation({ summary: 'attachment/icon' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAttachmenticon(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysConfigServiceImplService } from '../../../services/admin/sys/impl/sys-config-service-impl.service';
|
||||
import { OplatformConfigServiceImplService } from '../../../services/admin/wxoplatform/impl/oplatform-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysConfigController {
|
||||
constructor(
|
||||
private readonly sysConfigServiceImplService: SysConfigServiceImplService,
|
||||
private readonly oplatformConfigServiceImplService: OplatformConfigServiceImplService
|
||||
) {}
|
||||
@Get('config/website')
|
||||
@ApiOperation({ summary: '/config/website' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfigwebsite(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getWebSite(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config/website')
|
||||
@ApiOperation({ summary: '/config/website' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfigwebsite(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.setCopyRight(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config/service')
|
||||
@ApiOperation({ summary: '/config/service' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfigservice(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getService(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config/copyright')
|
||||
@ApiOperation({ summary: '/config/copyright' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfigcopyright(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getCopyRight(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config/copyright')
|
||||
@ApiOperation({ summary: '/config/copyright' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfigcopyright(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.setCopyRight(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config/map')
|
||||
@ApiOperation({ summary: '/config/map' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfigmap(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getMap(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config/map')
|
||||
@ApiOperation({ summary: '/config/map' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfigmap(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.setMap(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config/developer_token')
|
||||
@ApiOperation({ summary: '/config/developer_token' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfigdevelopertoken(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getDeveloperToken(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config/developer_token')
|
||||
@ApiOperation({ summary: '/config/developer_token' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfigdevelopertoken(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.setDeveloperToken(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config/layout')
|
||||
@ApiOperation({ summary: '/config/layout' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfiglayout(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getLayout(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config/layout')
|
||||
@ApiOperation({ summary: '/config/layout' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfiglayout(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.setLayout(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config/themecolor')
|
||||
@ApiOperation({ summary: '/config/themecolor' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfigthemecolor(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getThemeColor(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config/themecolor')
|
||||
@ApiOperation({ summary: '/config/themecolor' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfigthemecolor(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.setThemeColor(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('date/month')
|
||||
@ApiOperation({ summary: '/date/month' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDatemonth(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getUrl(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('date/week')
|
||||
@ApiOperation({ summary: '/date/week' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDateweek(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getUrl(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('url')
|
||||
@ApiOperation({ summary: '/url' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUrl(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getUrl(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('wxoplatform/config')
|
||||
@ApiOperation({ summary: '/wxoplatform/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getWxoplatformconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformConfigServiceImplService.getWxOplatformConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('channel')
|
||||
@ApiOperation({ summary: '/channel' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getChannel(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('info')
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysExportServiceImplService } from '../../../services/admin/sys/impl/sys-export-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysExportController {
|
||||
constructor(
|
||||
private readonly sysExportServiceImplService: SysExportServiceImplService
|
||||
) {}
|
||||
@Get('export')
|
||||
@ApiOperation({ summary: '/export' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExport(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('export/status')
|
||||
@ApiOperation({ summary: '/export/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExportstatus(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('export/type')
|
||||
@ApiOperation({ summary: '/export/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExporttype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysExportServiceImplService.checkExportData(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('export/check/:type')
|
||||
@ApiOperation({ summary: '/export/check/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExportchecktype(@Param('type') type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysExportServiceImplService.checkExportData(type, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('export/:type')
|
||||
@ApiOperation({ summary: '/export/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExporttype1(@Param('type') type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysExportServiceImplService.exportData(type, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('export/:id')
|
||||
@ApiOperation({ summary: '/export/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteExportid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysExportServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysMenuServiceImplService } from '../../../services/admin/sys/impl/sys-menu-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysMenuController {
|
||||
constructor(
|
||||
private readonly sysMenuServiceImplService: SysMenuServiceImplService
|
||||
) {}
|
||||
@Get('menu/:appType')
|
||||
@ApiOperation({ summary: '/menu/{appType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenuappType(@Param('appType') appType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.getAllMenuList(appType, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('menu/:appType/info/:menuKey')
|
||||
@ApiOperation({ summary: '/menu/{appType}/info/{menuKey}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenuappTypeinfomenuKey(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.get(params, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('menu')
|
||||
@ApiOperation({ summary: '/menu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMenu(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('menu/:appType/:menuKey')
|
||||
@ApiOperation({ summary: '/menu/{appType}/{menuKey}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putMenuappTypemenuKey(@Body() body: Record<string, any>, @Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.edit(body, params);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('menu/:appType/:menuKey')
|
||||
@ApiOperation({ summary: '/menu/{appType}/{menuKey}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteMenuappTypemenuKey(@Param() params: Record<string, string>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.del(params);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('menu/refresh')
|
||||
@ApiOperation({ summary: '/menu/refresh' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMenurefresh(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.installSystemServiceImplService.install(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('tree')
|
||||
@ApiOperation({ summary: '/tree' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTree(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.menuTree(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('menu/dir/:addon')
|
||||
@ApiOperation({ summary: '/menu/dir/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenudiraddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.getMenuByTypeDir(addon, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('menu/addon_menu/:app_key')
|
||||
@ApiOperation({ summary: '/menu/addon_menu/{app_key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenuaddonmenuappkey(@Param('app_key') app_key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.getSystemMenu(app_key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('menu/system_menu')
|
||||
@ApiOperation({ summary: '/menu/system_menu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenusystemmenu(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.getSystemMenu(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysNoticeServiceImplService } from '../../../services/admin/sys/impl/sys-notice-service-impl.service';
|
||||
|
||||
@Controller('adminapi/notice')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysNoticeController {
|
||||
constructor(
|
||||
private readonly sysNoticeServiceImplService: SysNoticeServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('info')
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('add')
|
||||
@ApiOperation({ summary: '/add' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAdd(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('edit')
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.edit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('del')
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CorePosterServiceImplService } from '../../../services/core/poster/impl/core-poster-service-impl.service';
|
||||
import { SysPosterServiceImplService } from '../../../services/admin/sys/impl/sys-poster-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/poster')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysPosterController {
|
||||
constructor(
|
||||
private readonly corePosterServiceImplService: CorePosterServiceImplService,
|
||||
private readonly sysPosterServiceImplService: SysPosterServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.page(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('init')
|
||||
@ApiOperation({ summary: '/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.init(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('template')
|
||||
@ApiOperation({ summary: '/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.template(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('status')
|
||||
@ApiOperation({ summary: '/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putStatus(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.modifyStatus(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('default')
|
||||
@ApiOperation({ summary: '/default' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDefault(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.modifyDefault(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('generate')
|
||||
@ApiOperation({ summary: '/generate' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getGenerate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('preview')
|
||||
@ApiOperation({ summary: '/preview' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPreview(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysPrinterTemplateServiceImplService } from '../../../services/admin/sys/impl/sys-printer-template-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/printer/template')
|
||||
@ApiTags('API')
|
||||
export class SysPrinterTemplateController {
|
||||
constructor(
|
||||
private readonly sysPrinterTemplateServiceImplService: SysPrinterTemplateServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysPrinterServiceImplService } from '../../../services/admin/sys/impl/sys-printer-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/printer')
|
||||
@ApiTags('API')
|
||||
export class SysPrinterController {
|
||||
constructor(
|
||||
private readonly sysPrinterServiceImplService: SysPrinterServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('status')
|
||||
@ApiOperation({ summary: '/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putStatus(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('brand')
|
||||
@ApiOperation({ summary: '/brand' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBrand(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('refreshtoken/:id')
|
||||
@ApiOperation({ summary: '/refreshtoken/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putRefreshtokenid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('testprint/:id')
|
||||
@ApiOperation({ summary: '/testprint/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putTestprintid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('printticket')
|
||||
@ApiOperation({ summary: '/printticket' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postPrintticket(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysRoleServiceImplService } from '../../../services/admin/sys/impl/sys-role-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysRoleController {
|
||||
constructor(
|
||||
private readonly sysRoleServiceImplService: SysRoleServiceImplService
|
||||
) {}
|
||||
@Get('role/all')
|
||||
@ApiOperation({ summary: 'role/all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRoleall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.getAllRole(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('role')
|
||||
@ApiOperation({ summary: '/role' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRole(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('role')
|
||||
@ApiOperation({ summary: '/role' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postRole(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('role/:roleId')
|
||||
@ApiOperation({ summary: '/role/{roleId}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRoleroleId(@Param('roleId') roleId: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.info(roleId, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('role/:roleId')
|
||||
@ApiOperation({ summary: '/role/{roleId}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putRoleroleId(@Body() body: Record<string, any>, @Param('roleId') roleId: string): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.edit(body, roleId);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('role/:roleId')
|
||||
@ApiOperation({ summary: '/role/{roleId}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteRoleroleId(@Param('roleId') roleId: string): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.del(roleId);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysScheduleServiceImplService } from '../../../services/admin/sys/impl/sys-schedule-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/schedule')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysScheduleController {
|
||||
constructor(
|
||||
private readonly sysScheduleServiceImplService: SysScheduleServiceImplService
|
||||
) {}
|
||||
@Get('list')
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('info/:id')
|
||||
@ApiOperation({ summary: '/info/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfoid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('modify/status/:id')
|
||||
@ApiOperation({ summary: '/modify/status/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putModifystatusid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.modifyStatus(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.type(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('template')
|
||||
@ApiOperation({ summary: '/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.template(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('datetype')
|
||||
@ApiOperation({ summary: '/datetype' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDatetype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.dateType(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('reset')
|
||||
@ApiOperation({ summary: '/reset' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postReset(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.resetSchedule(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('log/list')
|
||||
@ApiOperation({ summary: '/log/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLoglist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.logList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('do/:id')
|
||||
@ApiOperation({ summary: '/do/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDoid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.doSchedule(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('log/delete')
|
||||
@ApiOperation({ summary: '/log/delete' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putLogdelete(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.delLog(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('log/clear')
|
||||
@ApiOperation({ summary: '/log/clear' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putLogclear(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.clearLog(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
|
||||
@Controller('adminapi/sys/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysUeditorController {
|
||||
constructor() {}
|
||||
@Get('ueditor')
|
||||
@ApiOperation({ summary: '/ueditor' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUeditor(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('ueditor')
|
||||
@ApiOperation({ summary: '/ueditor' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postUeditor(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysUserRoleServiceImplService } from '../../../services/admin/sys/impl/sys-user-role-service-impl.service';
|
||||
|
||||
@Controller('api/user_role')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SysUserRoleController {
|
||||
constructor(
|
||||
private readonly sysUserRoleServiceImplService: SysUserRoleServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getId(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserRoleServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserRoleServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putId(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysUserRoleServiceImplService.edit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('del')
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserRoleServiceImplService.del(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysConfigServiceImplService } from '../../../services/admin/sys/impl/sys-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/web')
|
||||
@ApiTags('API')
|
||||
@Public()
|
||||
export class SysWebConfigController {
|
||||
constructor(
|
||||
private readonly sysConfigServiceImplService: SysConfigServiceImplService
|
||||
) {}
|
||||
@Get('website')
|
||||
@ApiOperation({ summary: 'website' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getWebsite(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getWebSite(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('copyright')
|
||||
@ApiOperation({ summary: '/copyright' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCopyright(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getCopyRight(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('layout')
|
||||
@ApiOperation({ summary: 'layout' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLayout(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysConfigServiceImplService.getLayout(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('restart')
|
||||
@ApiOperation({ summary: '/restart' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRestart(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SystemServiceImplService } from '../../../services/admin/sys/impl/system-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class SystemController {
|
||||
constructor(
|
||||
private readonly systemServiceImplService: SystemServiceImplService
|
||||
) {}
|
||||
@Post('cache/clear')
|
||||
@ApiOperation({ summary: '/cache/clear' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCacheclear(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('system')
|
||||
@ApiOperation({ summary: '/system' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSystem(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('qrcode')
|
||||
@ApiOperation({ summary: '/qrcode' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postQrcode(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { StorageConfigServiceImplService } from '../../../services/admin/upload/impl/storage-config-service-impl.service';
|
||||
import { SysUserLogServiceImplService } from '../../../services/admin/sys/impl/sys-user-log-service-impl.service';
|
||||
|
||||
@Controller('adminapi/sys/')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class StorageController {
|
||||
constructor(
|
||||
private readonly storageConfigServiceImplService: StorageConfigServiceImplService,
|
||||
private readonly sysUserLogServiceImplService: SysUserLogServiceImplService
|
||||
) {}
|
||||
@Get('storage')
|
||||
@ApiOperation({ summary: '/storage' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStorage(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.storageConfigServiceImplService.getStorageList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('storage/:storageType')
|
||||
@ApiOperation({ summary: '/storage/{storageType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStoragestorageType(@Param('storageType') storageType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.storageConfigServiceImplService.getStorageConfig(storageType, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('storage/:storageType')
|
||||
@ApiOperation({ summary: '/storage/{storageType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putStoragestorageType(@Body() body: Record<string, any>, @Param('storageType') storageType: string): Promise<Result<any>> {
|
||||
const result = await this.storageConfigServiceImplService.setStorageConfig(body, storageType);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('log/:id')
|
||||
@ApiOperation({ summary: '/log/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLogid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserLogServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { SysUserServiceImplService } from '../../../services/admin/sys/impl/sys-user-service-impl.service';
|
||||
|
||||
@Controller('adminapi/user')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class UserController {
|
||||
constructor(
|
||||
private readonly sysUserServiceImplService: SysUserServiceImplService
|
||||
) {}
|
||||
@Get('user')
|
||||
@ApiOperation({ summary: '/user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUser(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('user/:id')
|
||||
@ApiOperation({ summary: '/user/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUserid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.info(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('user')
|
||||
@ApiOperation({ summary: '/user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postUser(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('user/:uid')
|
||||
@ApiOperation({ summary: '/user/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUseruid(@Body() body: Record<string, any>, @Param('uid') uid: string): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.edit(body, uid);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('isexist')
|
||||
@ApiOperation({ summary: '/isexist' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getIsexist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.checkUserName(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('user/create_site_limit/:uid')
|
||||
@ApiOperation({ summary: '/user/create_site_limit/{uid}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUsercreatesitelimituid(@Param('uid') uid: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.getUserCreateSiteLimit(uid, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('user/create_site_limit/info/:id')
|
||||
@ApiOperation({ summary: '/user/create_site_limit/info/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUsercreatesitelimitinfoid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.getUserCreateSiteLimitInfo(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('user/create_site_limit')
|
||||
@ApiOperation({ summary: '/user/create_site_limit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postUsercreatesitelimit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.addUserCreateSiteLimit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('user/create_site_limit/:id')
|
||||
@ApiOperation({ summary: '/user/create_site_limit/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUsercreatesitelimitid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.editUserCreateSiteLimit(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('user/create_site_limit/:id')
|
||||
@ApiOperation({ summary: '/user/create_site_limit/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteUsercreatesitelimitid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.delUserCreateSiteLimit(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('user_all')
|
||||
@ApiOperation({ summary: '/user_all' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUserall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.getUserAll(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('user_select')
|
||||
@ApiOperation({ summary: 'user_select' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUserselect(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.getUserSelect(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('user/:id')
|
||||
@ApiOperation({ summary: '/user/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteUserid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.sysUserServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { VerifierServiceImplService } from '../../../services/admin/verify/impl/verifier-service-impl.service';
|
||||
|
||||
@Controller('adminapi/verify/verifier')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class VerifierController {
|
||||
constructor(
|
||||
private readonly verifierServiceImplService: VerifierServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifierServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('select')
|
||||
@ApiOperation({ summary: '/select' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSelect(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifierServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async post(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifierServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@ApiOperation({ summary: '/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteId(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.verifierServiceImplService.del(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('type')
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { VerifyServiceImplService } from '../../../services/admin/verify/impl/verify-service-impl.service';
|
||||
|
||||
@Controller('adminapi/verify/verify')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class VerifyController {
|
||||
constructor(
|
||||
private readonly verifyServiceImplService: VerifyServiceImplService
|
||||
) {}
|
||||
@Get('record')
|
||||
@ApiOperation({ summary: '/record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRecord(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifyServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get(':verify_code')
|
||||
@ApiOperation({ summary: '/{verify_code}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getVerifycode(@Param('verify_code') verify_code: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifyServiceImplService.detail(verify_code, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WeappConfigServiceImplService } from '../../../services/admin/weapp/impl/weapp-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/weapp')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ConfigController {
|
||||
constructor(
|
||||
private readonly weappConfigServiceImplService: WeappConfigServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappConfigServiceImplService.getWeappConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappConfigServiceImplService.setWeappConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('delivery/getIsTradeManaged')
|
||||
@ApiOperation({ summary: '/delivery/getIsTradeManaged' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDeliverygetIsTradeManaged(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('domain')
|
||||
@ApiOperation({ summary: '/domain' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDomain(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappConfigServiceImplService.setDomain(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('privacysetting')
|
||||
@ApiOperation({ summary: '/privacysetting' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putPrivacysetting(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappConfigServiceImplService.setPrivacySetting(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('privacysetting')
|
||||
@ApiOperation({ summary: '/privacysetting' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPrivacysetting(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappConfigServiceImplService.getPrivacySetting(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WeappTemplateServiceImplService } from '../../../services/admin/weapp/impl/weapp-template-service-impl.service';
|
||||
|
||||
@Controller('adminapi/weapp/template')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class TemplateController {
|
||||
constructor(
|
||||
private readonly weappTemplateServiceImplService: WeappTemplateServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappTemplateServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('sync')
|
||||
@ApiOperation({ summary: '/sync' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putSync(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappTemplateServiceImplService.sync(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WeappVersionServiceImplService } from '../../../services/admin/weapp/impl/weapp-version-service-impl.service';
|
||||
|
||||
@Controller('adminapi/weapp')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class VersionController {
|
||||
constructor(
|
||||
private readonly weappVersionServiceImplService: WeappVersionServiceImplService
|
||||
) {}
|
||||
@Post('version')
|
||||
@ApiOperation({ summary: '/version' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postVersion(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('version')
|
||||
@ApiOperation({ summary: '/version' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getVersion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('preview')
|
||||
@ApiOperation({ summary: '/preview' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPreview(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.getWeappPreviewImage(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('upload/:key')
|
||||
@ApiOperation({ summary: '/upload/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUploadkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.getWeappCompileLog(key, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WechatConfigServiceImplService } from '../../../services/admin/wechat/impl/wechat-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wechat')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ConfigController {
|
||||
constructor(
|
||||
private readonly wechatConfigServiceImplService: WechatConfigServiceImplService
|
||||
) {}
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatConfigServiceImplService.getWechatConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatConfigServiceImplService.setWechatConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('static')
|
||||
@ApiOperation({ summary: '/static' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatic(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatConfigServiceImplService.staticInfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WechatMediaServiceImplService } from '../../../services/admin/wechat/impl/wechat-media-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wechat')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MediaController {
|
||||
constructor(
|
||||
private readonly wechatMediaServiceImplService: WechatMediaServiceImplService
|
||||
) {}
|
||||
@Get('media')
|
||||
@ApiOperation({ summary: '/media' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMedia(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMediaServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('media/image')
|
||||
@ApiOperation({ summary: '/media/image' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMediaimage(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMediaServiceImplService.image(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('media/video')
|
||||
@ApiOperation({ summary: '/media/video' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postMediavideo(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMediaServiceImplService.video(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('sync/news')
|
||||
@ApiOperation({ summary: '/sync/news' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSyncnews(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMediaServiceImplService.syncNews(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WechatMenuServiceImplService } from '../../../services/admin/wechat/impl/wechat-menu-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wechat')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MenuController {
|
||||
constructor(
|
||||
private readonly wechatMenuServiceImplService: WechatMenuServiceImplService
|
||||
) {}
|
||||
@Get('menu')
|
||||
@ApiOperation({ summary: '/menu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenu(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMenuServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('menu')
|
||||
@ApiOperation({ summary: '/menu' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putMenu(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMenuServiceImplService.edit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WechatReplyServiceImplService } from '../../../services/admin/wechat/impl/wechat-reply-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wechat/reply')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ReplyController {
|
||||
constructor(
|
||||
private readonly wechatReplyServiceImplService: WechatReplyServiceImplService
|
||||
) {}
|
||||
@Get('keywords')
|
||||
@ApiOperation({ summary: '/keywords' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKeywords(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.getKeywordList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('keywords/:id')
|
||||
@ApiOperation({ summary: '/keywords/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKeywordsid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.getKeywordInfo(id, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('keywords')
|
||||
@ApiOperation({ summary: '/keywords' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postKeywords(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.addKeyword(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('keywords/:id')
|
||||
@ApiOperation({ summary: '/keywords/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putKeywordsid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.editKeyword(body, id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Delete('keywords/:id')
|
||||
@ApiOperation({ summary: '/keywords/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteKeywordsid(@Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.delKeyword(id);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('default')
|
||||
@ApiOperation({ summary: '/default' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDefault(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.getDefault(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('default')
|
||||
@ApiOperation({ summary: '/default' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDefault(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.editDefault(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('subscribe')
|
||||
@ApiOperation({ summary: '/subscribe' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSubscribe(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.getSubscribe(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('subscribe')
|
||||
@ApiOperation({ summary: '/subscribe' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putSubscribe(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.editSubscribe(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WechatTemplateServiceImplService } from '../../../services/admin/wechat/impl/wechat-template-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wechat/template')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class TemplateController {
|
||||
constructor(
|
||||
private readonly wechatTemplateServiceImplService: WechatTemplateServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatTemplateServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('sync')
|
||||
@ApiOperation({ summary: '/sync' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putSync(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatTemplateServiceImplService.sync(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { OplatformConfigServiceImplService } from '../../../services/admin/wxoplatform/impl/oplatform-config-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wxoplatform')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class ConfigController {
|
||||
constructor(
|
||||
private readonly oplatformConfigServiceImplService: OplatformConfigServiceImplService
|
||||
) {}
|
||||
@Get('static')
|
||||
@ApiOperation({ summary: '/static' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStatic(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformConfigServiceImplService.getOplatformStaticInfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformConfigServiceImplService.getWxOplatformConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('config')
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putConfig(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformConfigServiceImplService.setWxOplatformConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { OplatformServiceImplService } from '../../../services/admin/wxoplatform/impl/oplatform-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wxoplatform')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class OplatformController {
|
||||
constructor(
|
||||
private readonly oplatformServiceImplService: OplatformServiceImplService
|
||||
) {}
|
||||
@Get('authorizationUrl')
|
||||
@ApiOperation({ summary: '/authorizationUrl' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAuthorizationUrl(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformServiceImplService.createPreAuthorizationUrl(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('authorization')
|
||||
@ApiOperation({ summary: '/authorization' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAuthorization(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformServiceImplService.authorization(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('authorization/record')
|
||||
@ApiOperation({ summary: '/authorization/record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAuthorizationrecord(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { OplatformServerServiceImplService } from '../../../services/admin/wxoplatform/impl/oplatform-server-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wxoplatform')
|
||||
@ApiTags('API')
|
||||
@Public()
|
||||
export class ServerController {
|
||||
constructor(
|
||||
private readonly oplatformServerServiceImplService: OplatformServerServiceImplService
|
||||
) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { WeappVersionServiceImplService } from '../../../services/admin/weapp/impl/weapp-version-service-impl.service';
|
||||
|
||||
@Controller('adminapi/wxoplatform')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class WeappVersionController {
|
||||
constructor(
|
||||
private readonly weappVersionServiceImplService: WeappVersionServiceImplService
|
||||
) {}
|
||||
@Get('weapp/commit/last')
|
||||
@ApiOperation({ summary: '/weapp/commit/last' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getWeappcommitlast(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.getLastCommitRecord(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('weapp/commit')
|
||||
@ApiOperation({ summary: '/weapp/commit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getWeappcommit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('weapp/version/commit')
|
||||
@ApiOperation({ summary: '/weapp/version/commit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postWeappversioncommit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.add(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('site/weapp/commit')
|
||||
@ApiOperation({ summary: '/site/weapp/commit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSiteweappcommit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.siteWeappCommit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('sitegroup/commit')
|
||||
@ApiOperation({ summary: '/sitegroup/commit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSitegroupcommit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.getSiteGroupCommitRecord(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Put('undo/weappaudit')
|
||||
@ApiOperation({ summary: '/undo/weappaudit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putUndoweappaudit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.undoAudit(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('async/siteweapp')
|
||||
@ApiOperation({ summary: '/async/siteweapp' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAsyncsiteweapp(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.syncSiteGroupAuthWeapp(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CoreAddonServiceImplService } from '../../../services/core/addon/impl/core-addon-service-impl.service';
|
||||
|
||||
@Controller('api/addon')
|
||||
@ApiTags('API')
|
||||
export class AddonController {
|
||||
constructor(
|
||||
private readonly coreAddonServiceImplService: CoreAddonServiceImplService
|
||||
) {}
|
||||
@Get('list/install')
|
||||
@ApiOperation({ summary: '/list/install' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getListinstall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AgreementServiceImplService } from '../../../services/api/agreement/impl/agreement-service-impl.service';
|
||||
|
||||
@Controller('api/agreement')
|
||||
@ApiTags('API')
|
||||
export class AgreementController {
|
||||
constructor(
|
||||
private readonly agreementServiceImplService: AgreementServiceImplService
|
||||
) {}
|
||||
@Get(':key')
|
||||
@ApiOperation({ summary: '/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { AppServiceImplService } from '../../../services/api/channel/impl/app-service-impl.service';
|
||||
|
||||
@Controller('api')
|
||||
@ApiTags('API')
|
||||
export class AppController {
|
||||
constructor(
|
||||
private readonly appServiceImplService: AppServiceImplService
|
||||
) {}
|
||||
@Post('wxapp/login')
|
||||
@ApiOperation({ summary: '/wxapp/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postWxapplogin(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.appServiceImplService.wechatLogin(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('app/newversion')
|
||||
@ApiOperation({ summary: '/app/newversion' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppnewversion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.appServiceImplService.getNewVersion(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyFormServiceImplService } from '../../../services/admin/diy_form/impl/diy-form-service-impl.service';
|
||||
|
||||
@Controller('api/diy/form')
|
||||
@ApiTags('API')
|
||||
export class DiyFormController {
|
||||
constructor(
|
||||
private readonly diyFormServiceImplService: DiyFormServiceImplService
|
||||
) {}
|
||||
@Get('')
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('record')
|
||||
@ApiOperation({ summary: '/record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async getRecord(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('result')
|
||||
@ApiOperation({ summary: '/result' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async getResult(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('record')
|
||||
@ApiOperation({ summary: '/record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async postRecord(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('record')
|
||||
@ApiOperation({ summary: '/record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async putRecord(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('member_record')
|
||||
@ApiOperation({ summary: '/member_record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async getMemberrecord(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { DiyServiceImplService } from '../../../services/admin/diy/impl/diy-service-impl.service';
|
||||
|
||||
@Controller('api/diy')
|
||||
@ApiTags('API')
|
||||
export class DiyController {
|
||||
constructor(
|
||||
private readonly diyServiceImplService: DiyServiceImplService
|
||||
) {}
|
||||
@Get('diy')
|
||||
@ApiOperation({ summary: '/diy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDiy(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('tabbar')
|
||||
@ApiOperation({ summary: '/tabbar' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTabbar(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('tabbar/list')
|
||||
@ApiOperation({ summary: '/tabbar/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTabbarlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('share')
|
||||
@ApiOperation({ summary: '/share' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getShare(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { RegisterServiceImplService } from '../../../services/api/login/impl/register-service-impl.service';
|
||||
import { LoginServiceImplService } from '../../../services/admin/auth/impl/login-service-impl.service';
|
||||
import { WechatServiceImplService } from '../../../services/api/wechat/impl/wechat-service-impl.service';
|
||||
import { WeappServiceImplService } from '../../../services/api/weapp/impl/weapp-service-impl.service';
|
||||
import { AppServiceImplService } from '../../../services/api/channel/impl/app-service-impl.service';
|
||||
|
||||
@Controller('api')
|
||||
@ApiTags('API')
|
||||
export class LoginController {
|
||||
constructor(
|
||||
private readonly registerServiceImplService: RegisterServiceImplService,
|
||||
private readonly loginServiceImplService: LoginServiceImplService,
|
||||
private readonly wechatServiceImplService: WechatServiceImplService,
|
||||
private readonly weappServiceImplService: WeappServiceImplService,
|
||||
private readonly appServiceImplService: AppServiceImplService
|
||||
) {}
|
||||
@Get('login')
|
||||
@ApiOperation({ summary: '/login' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLogin(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.registerServiceImplService.checkLoginConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('login/mobile')
|
||||
@ApiOperation({ summary: '/login/mobile' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postLoginmobile(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.registerServiceImplService.checkLoginConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('password/reset')
|
||||
@ApiOperation({ summary: '/password/reset' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postPasswordreset(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.loginServiceImplService.getLoginConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('login/config')
|
||||
@ApiOperation({ summary: '/login/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLoginconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.loginServiceImplService.getLoginConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('send/mobile/:type')
|
||||
@ApiOperation({ summary: '/send/mobile/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSendmobiletype(@Body() body: Record<string, any>, @Param('type') type: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('auth/logout')
|
||||
@ApiOperation({ summary: '/auth/logout' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAuthlogout(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('bind')
|
||||
@ApiOperation({ summary: '/bind' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postBind(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatServiceImplService.register(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { RegisterServiceImplService } from '../../../services/api/login/impl/register-service-impl.service';
|
||||
import { WechatServiceImplService } from '../../../services/api/wechat/impl/wechat-service-impl.service';
|
||||
import { WeappServiceImplService } from '../../../services/api/weapp/impl/weapp-service-impl.service';
|
||||
|
||||
@Controller('api')
|
||||
@ApiTags('API')
|
||||
export class RegisterController {
|
||||
constructor(
|
||||
private readonly registerServiceImplService: RegisterServiceImplService,
|
||||
private readonly wechatServiceImplService: WechatServiceImplService,
|
||||
private readonly weappServiceImplService: WeappServiceImplService
|
||||
) {}
|
||||
@Post('register')
|
||||
@ApiOperation({ summary: '/register' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postRegister(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.registerServiceImplService.checkLoginConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Post('register/mobile')
|
||||
@ApiOperation({ summary: '/register/mobile' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postRegistermobile(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.registerServiceImplService.checkLoginConfig(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberAccountServiceImplService } from '../../../services/admin/member/impl/member-account-service-impl.service';
|
||||
|
||||
@Controller('api/member')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberAccountController {
|
||||
constructor(
|
||||
private readonly memberAccountServiceImplService: MemberAccountServiceImplService
|
||||
) {}
|
||||
@Get('account/point')
|
||||
@ApiOperation({ summary: '/account/point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountpoint(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/balance')
|
||||
@ApiOperation({ summary: '/account/balance' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountbalance(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/balance_list')
|
||||
@ApiOperation({ summary: '/account/balance_list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountbalancelist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/money')
|
||||
@ApiOperation({ summary: '/account/money' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountmoney(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/count')
|
||||
@ApiOperation({ summary: '/account/count' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountcount(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/commission')
|
||||
@ApiOperation({ summary: '/account/commission' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountcommission(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/fromtype/:accountType')
|
||||
@ApiOperation({ summary: '/account/fromtype/{accountType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountfromtypeaccountType(@Param('accountType') accountType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('account/pointcount')
|
||||
@ApiOperation({ summary: '/account/pointcount' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAccountpointcount(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberAddressServiceImplService } from '../../../services/admin/member/impl/member-address-service-impl.service';
|
||||
|
||||
@Controller('api/member')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberAddressController {
|
||||
constructor(
|
||||
private readonly memberAddressServiceImplService: MemberAddressServiceImplService
|
||||
) {}
|
||||
@Get('address')
|
||||
@ApiOperation({ summary: '/address' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddress(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('address/:id')
|
||||
@ApiOperation({ summary: '/address/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddressid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('address')
|
||||
@ApiOperation({ summary: '/address' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddress(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('address/:id')
|
||||
@ApiOperation({ summary: '/address/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putAddressid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Delete('address/:id')
|
||||
@ApiOperation({ summary: '/address/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteAddressid(@Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberCashOutServiceImplService } from '../../../services/admin/member/impl/member-cash-out-service-impl.service';
|
||||
|
||||
@Controller('api/member')
|
||||
@ApiTags('API')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
export class MemberCashOutController {
|
||||
constructor(
|
||||
private readonly memberCashOutServiceImplService: MemberCashOutServiceImplService
|
||||
) {}
|
||||
@Get('cash_out')
|
||||
@ApiOperation({ summary: '/cash_out' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashout(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('cash_out/:id')
|
||||
@ApiOperation({ summary: '/cash_out/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashoutid(@Param('id') id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('cash_out/config')
|
||||
@ApiOperation({ summary: '/cash_out/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashoutconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('cash_out/transfertype')
|
||||
@ApiOperation({ summary: '/cash_out/transfertype' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashouttransfertype(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('cash_out/apply')
|
||||
@ApiOperation({ summary: '/cash_out/apply' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCashoutapply(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('cash_out/cancel/:id')
|
||||
@ApiOperation({ summary: '/cash_out/cancel/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putCashoutcancelid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('cash_out/transfer/:id')
|
||||
@ApiOperation({ summary: '/cash_out/transfer/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCashouttransferid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('cashout_account')
|
||||
@ApiOperation({ summary: '/cashout_account' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashoutaccount(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('cashout_account/:account_id')
|
||||
@ApiOperation({ summary: '/cashout_account/{account_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashoutaccountaccountid(@Param('account_id') account_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('cashout_account/firstinfo')
|
||||
@ApiOperation({ summary: '/cashout_account/firstinfo' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCashoutaccountfirstinfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('cashout_account')
|
||||
@ApiOperation({ summary: '/cashout_account' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCashoutaccount(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('cashout_account/:account_id')
|
||||
@ApiOperation({ summary: '/cashout_account/{account_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putCashoutaccountaccountid(@Body() body: Record<string, any>, @Param('account_id') account_id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Delete('cashout_account/:account_id')
|
||||
@ApiOperation({ summary: '/cashout_account/{account_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteCashoutaccountaccountid(@Param('account_id') account_id: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberSignServiceImplService } from '../../../services/admin/member/impl/member-sign-service-impl.service';
|
||||
|
||||
@Controller('api/member')
|
||||
@ApiTags('API')
|
||||
export class MemberSignController {
|
||||
constructor(
|
||||
private readonly memberSignServiceImplService: MemberSignServiceImplService
|
||||
) {}
|
||||
@Get('sign')
|
||||
@ApiOperation({ summary: '/sign' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSign(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('sign/:sign_id')
|
||||
@ApiOperation({ summary: '/sign/{sign_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSignsignid(@Param('sign_id') sign_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('sign')
|
||||
@ApiOperation({ summary: '/sign' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postSign(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('sign/info/:year/:month')
|
||||
@ApiOperation({ summary: '/sign/info/{year}/{month}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSigninfoyearmonth(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('sign/award/:year/:month/:day')
|
||||
@ApiOperation({ summary: '/sign/award/{year}/{month}/{day}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSignawardyearmonthday(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('sign/config')
|
||||
@ApiOperation({ summary: '/sign/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSignconfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { MemberServiceImplService } from '../../../services/admin/member/impl/member-service-impl.service';
|
||||
import { MemberLevelServiceImplService } from '../../../services/admin/member/impl/member-level-service-impl.service';
|
||||
|
||||
@Controller('api/member')
|
||||
@ApiTags('API')
|
||||
export class MemberController {
|
||||
constructor(
|
||||
private readonly memberServiceImplService: MemberServiceImplService,
|
||||
private readonly memberLevelServiceImplService: MemberLevelServiceImplService
|
||||
) {}
|
||||
@Get('member')
|
||||
@ApiOperation({ summary: '/member' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async getMember(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('center')
|
||||
@ApiOperation({ summary: '/center' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async getCenter(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('modify/:field')
|
||||
@ApiOperation({ summary: '/modify/{field}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async putModifyfield(@Body() body: Record<string, any>, @Param('field') field: string): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('edit')
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async putEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('mobile')
|
||||
@ApiOperation({ summary: '/mobile' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async putMobile(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('qrcode')
|
||||
@ApiOperation({ summary: '/qrcode' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
async getQrcode(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Post('log')
|
||||
@ApiOperation({ summary: '/log' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postLog(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('level')
|
||||
@ApiOperation({ summary: '/level' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLevel(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Put('getmobile')
|
||||
@ApiOperation({ summary: '/getmobile' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putGetmobile(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { PayServiceImplService } from '../../../services/admin/pay/impl/pay-service-impl.service';
|
||||
|
||||
@Controller('api')
|
||||
@ApiTags('API')
|
||||
export class PayController {
|
||||
constructor(
|
||||
private readonly payServiceImplService: PayServiceImplService
|
||||
) {}
|
||||
@Post('pay')
|
||||
@ApiOperation({ summary: '/pay' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postPay(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.asyncNotify(body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('pay/info/:trade_type/:trade_id')
|
||||
@ApiOperation({ summary: '/pay/info/{trade_type}/{trade_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPayinfotradetypetradeid(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
@Get('pay/friendspay/info/:trade_type/:trade_id')
|
||||
@ApiOperation({ summary: '/pay/friendspay/info/{trade_type}/{trade_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPayfriendspayinfotradetypetradeid(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { TaskServiceImplService } from '../../../services/api/sys/impl/task-service-impl.service';
|
||||
|
||||
@Controller('api')
|
||||
@ApiTags('API')
|
||||
export class TaskController {
|
||||
constructor(
|
||||
private readonly taskServiceImplService: TaskServiceImplService
|
||||
) {}
|
||||
@Get('task/growth')
|
||||
@ApiOperation({ summary: '/task/growth' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTaskgrowth(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.taskServiceImplService.getGrowthTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@Get('task/point')
|
||||
@ApiOperation({ summary: '/task/point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTaskpoint(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.taskServiceImplService.getPointTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Controller, Get, Post, Put, Delete, Body, Param, Query, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { AuthGuard, RbacGuard, Public, Result } from '@wwjBoot';
|
||||
import { CaptchaServiceImplService } from '../../../services/admin/captcha/impl/captcha-service-impl.service';
|
||||
|
||||
@Controller('api')
|
||||
@ApiTags('API')
|
||||
export class CaptchaController {
|
||||
constructor(
|
||||
private readonly captchaServiceImplService: CaptchaServiceImplService
|
||||
) {}
|
||||
@Get('captcha')
|
||||
@ApiOperation({ summary: '/captcha' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCaptcha(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
// TODO: 实现业务逻辑
|
||||
return Result.success(null);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user