Skip to content

Commit 0f25be0

Browse files
committed
生成前端查询模板接口
1 parent d0d2c95 commit 0f25be0

File tree

4 files changed

+230
-4
lines changed

4 files changed

+230
-4
lines changed

src/modules/admin/ZhonTai.Admin.Core/ZhonTai.Admin.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.6" />
6565
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.11.0" />
6666
<PackageReference Include="System.ServiceModel.Primitives" Version="8.1.2" />
67-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.2" />
67+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.1" />
6868
<PackageReference Include="ToolGood.Words.Pinyin" Version="3.1.0.3" />
6969
<PackageReference Include="UAParser" Version="3.1.47" />
7070
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />

ui/zhontai.ui.admin.vue3/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
"sm-crypto-v2": "^1.11.0",
4141
"sortablejs": "^1.15.6",
4242
"splitpanes": "^4.0.4",
43-
"vue": "3.5.14",
43+
"vue": "3.5.15",
4444
"vue-clipboard3": "^2.0.0",
4545
"vue-demi": "^0.14.10",
4646
"vue-grid-layout": "^3.0.0-beta1",
47-
"vue-i18n": "^11.1.3",
47+
"vue-i18n": "^11.1.4",
4848
"vue-plugin-hiprint": "^0.0.60",
4949
"vue-router": "^4.5.1",
5050
"vue3-tree-org": "^4.2.2"
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/eslint-plugin": "^8.32.1",
5858
"@typescript-eslint/parser": "^8.32.1",
5959
"@vitejs/plugin-vue": "^5.2.4",
60-
"@vue/compiler-sfc": "^3.5.14",
60+
"@vue/compiler-sfc": "^3.5.15",
6161
"dotenv": "16.5.0",
6262
"ejs": "^3.1.10",
6363
"eslint": "^9.27.0",
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
/* eslint-disable */
2+
/* tslint:disable */
3+
// @ts-nocheck
4+
/*
5+
* ---------------------------------------------------------------
6+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7+
* ## ##
8+
* ## AUTHOR: acacode ##
9+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10+
* ---------------------------------------------------------------
11+
*/
12+
13+
import { AxiosResponse } from 'axios'
14+
import {
15+
ResultOutputInt64,
16+
ResultOutputListSearchTemplateGetListOutput,
17+
ResultOutputSearchTemplateGetUpdateOutput,
18+
SearchTemplateAddInput,
19+
SearchTemplateUpdateInput,
20+
} from './data-contracts'
21+
import { ContentType, HttpClient, RequestParams } from './http-client'
22+
23+
export class SearchTemplateApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
24+
/**
25+
* No description
26+
*
27+
* @tags search-template
28+
* @name Get
29+
* @summary 查询
30+
* @request GET:/api/admin/search-template/get
31+
* @secure
32+
*/
33+
get = (
34+
query?: {
35+
/** @format int64 */
36+
id?: number
37+
},
38+
params: RequestParams = {}
39+
) =>
40+
this.request<ResultOutputSearchTemplateGetUpdateOutput, any>({
41+
path: `/api/admin/search-template/get`,
42+
method: 'GET',
43+
query: query,
44+
secure: true,
45+
format: 'json',
46+
...params,
47+
})
48+
/**
49+
* No description
50+
*
51+
* @tags search-template
52+
* @name GetList
53+
* @summary 查询列表
54+
* @request GET:/api/admin/search-template/get-list
55+
* @secure
56+
*/
57+
getList = (
58+
query?: {
59+
/** @format int64 */
60+
moduleId?: number
61+
},
62+
params: RequestParams = {}
63+
) =>
64+
this.request<ResultOutputListSearchTemplateGetListOutput, any>({
65+
path: `/api/admin/search-template/get-list`,
66+
method: 'GET',
67+
query: query,
68+
secure: true,
69+
format: 'json',
70+
...params,
71+
})
72+
/**
73+
* No description
74+
*
75+
* @tags search-template
76+
* @name Add
77+
* @summary 新增
78+
* @request POST:/api/admin/search-template/add
79+
* @secure
80+
*/
81+
add = (data: SearchTemplateAddInput, params: RequestParams = {}) =>
82+
this.request<ResultOutputInt64, any>({
83+
path: `/api/admin/search-template/add`,
84+
method: 'POST',
85+
body: data,
86+
secure: true,
87+
type: ContentType.Json,
88+
format: 'json',
89+
...params,
90+
})
91+
/**
92+
* No description
93+
*
94+
* @tags search-template
95+
* @name UpdateTemplate
96+
* @summary 修改
97+
* @request PUT:/api/admin/search-template/update-template
98+
* @secure
99+
*/
100+
updateTemplate = (data: SearchTemplateUpdateInput, params: RequestParams = {}) =>
101+
this.request<AxiosResponse, any>({
102+
path: `/api/admin/search-template/update-template`,
103+
method: 'PUT',
104+
body: data,
105+
secure: true,
106+
type: ContentType.Json,
107+
...params,
108+
})
109+
/**
110+
* No description
111+
*
112+
* @tags search-template
113+
* @name Delete
114+
* @summary 彻底删除
115+
* @request DELETE:/api/admin/search-template/delete
116+
* @secure
117+
*/
118+
delete = (
119+
query?: {
120+
/** @format int64 */
121+
id?: number
122+
},
123+
params: RequestParams = {}
124+
) =>
125+
this.request<AxiosResponse, any>({
126+
path: `/api/admin/search-template/delete`,
127+
method: 'DELETE',
128+
query: query,
129+
secure: true,
130+
...params,
131+
})
132+
}

ui/zhontai.ui.admin.vue3/src/api/admin/data-contracts.ts

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4098,6 +4098,18 @@ export interface ResultOutputListRoleGetRoleUserListOutput {
40984098
data?: RoleGetRoleUserListOutput[] | null
40994099
}
41004100

4101+
/** 结果输出 */
4102+
export interface ResultOutputListSearchTemplateGetListOutput {
4103+
/** 是否成功标记 */
4104+
success?: boolean
4105+
/** 编码 */
4106+
code?: string | null
4107+
/** 消息 */
4108+
msg?: string | null
4109+
/** 数据 */
4110+
data?: SearchTemplateGetListOutput[] | null
4111+
}
4112+
41014113
/** 结果输出 */
41024114
export interface ResultOutputListString {
41034115
/** 是否成功标记 */
@@ -4482,6 +4494,18 @@ export interface ResultOutputRoleGetOutput {
44824494
data?: RoleGetOutput
44834495
}
44844496

4497+
/** 结果输出 */
4498+
export interface ResultOutputSearchTemplateGetUpdateOutput {
4499+
/** 是否成功标记 */
4500+
success?: boolean
4501+
/** 编码 */
4502+
code?: string | null
4503+
/** 消息 */
4504+
msg?: string | null
4505+
/** 修改响应 */
4506+
data?: SearchTemplateGetUpdateOutput
4507+
}
4508+
44854509
/** 结果输出 */
44864510
export interface ResultOutputSiteMsgGetContentOutput {
44874511
/** 是否成功标记 */
@@ -4880,6 +4904,76 @@ export interface RoleUpdateInput {
48804904
id: number
48814905
}
48824906

4907+
/** 添加请求 */
4908+
export interface SearchTemplateAddInput {
4909+
/**
4910+
* 模块Id
4911+
* @format int64
4912+
*/
4913+
moduleId?: number
4914+
/** 名称 */
4915+
name?: string | null
4916+
/** 模板 */
4917+
template?: string | null
4918+
}
4919+
4920+
/** 查询模板列表 */
4921+
export interface SearchTemplateGetListOutput {
4922+
/**
4923+
* 主键Id
4924+
* @format int64
4925+
*/
4926+
id?: number
4927+
/** 名称 */
4928+
name?: string | null
4929+
}
4930+
4931+
/** 修改响应 */
4932+
export interface SearchTemplateGetUpdateOutput {
4933+
/**
4934+
* 查询模板Id
4935+
* @format int64
4936+
*/
4937+
id: number
4938+
/** 名称 */
4939+
name?: string | null
4940+
/**
4941+
* 模块Id
4942+
* @format int64
4943+
*/
4944+
moduleId?: number
4945+
/** 模板 */
4946+
template?: string | null
4947+
/**
4948+
* 版本
4949+
* @format int64
4950+
*/
4951+
version?: number
4952+
}
4953+
4954+
/** 修改请求 */
4955+
export interface SearchTemplateUpdateInput {
4956+
/**
4957+
* 查询模板Id
4958+
* @format int64
4959+
*/
4960+
id: number
4961+
/** 名称 */
4962+
name?: string | null
4963+
/**
4964+
* 模块Id
4965+
* @format int64
4966+
*/
4967+
moduleId?: number
4968+
/** 模板 */
4969+
template?: string | null
4970+
/**
4971+
* 版本
4972+
* @format int64
4973+
*/
4974+
version?: number
4975+
}
4976+
48834977
/** 发送邮箱验证码 */
48844978
export interface SendEmailCodeInput {
48854979
/**

0 commit comments

Comments
 (0)