Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
376ec1a6
authored
May 26, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】image list 接口 mock
parent
51e28065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
src/api/ai/image/index.ts
+21
-0
No files found.
src/api/ai/image/index.ts
View file @
376ec1a6
...
...
@@ -14,8 +14,29 @@ export interface ImageDetailVO {
model
:
string
// 模型
}
export
interface
ImagePageReqVO
{
pageNo
:
number
// 分页编号
pageSize
:
number
// 分页大小
}
// AI API 密钥 API
export
const
ImageApi
=
{
getImageList
:
async
(
params
:
ImagePageReqVO
)
=>
{
return
[
{
id
:
1
,
prompt
:
'童话里的小屋是什么样子?'
,
status
:
'todo'
,
errorMessage
:
'error 未登录'
,
type
:
'qinxi'
,
taskId
:
111
,
imageUrl
:
'https://img.bigpt8.com/uploads/thumbnail/20240509/b7802797e5f709f35a451a1591d4d495.png'
,
platform
:
'dr'
,
model
:
'dr'
}
]
as
ImageDetailVO
[]
},
// 获取 image 详细信息
getImageDetail
:
async
(
id
:
number
)
=>
{
// return await request.get({ url: `/ai/api-key/page?`, params })
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment