xiaou-easyproject
  1. 图片上传V1
xiaou-easyproject
  • 测试接口
    • index
      GET
  • 验证码生成V1
    • 使用hutool完成验证码生成
      GET
    • 使用Kaptcha完成验证码生成
      GET
  • 图片上传V1
    • 「已废弃」
      POST
    • 「已废弃」
      GET
    • 「已废弃」
      POST
  • 文件上传V1
    • 上传文件
      POST
    • 上传文件,成功返回文件 url
      POST
    • 上传图片,成功返回文件信息
      POST
    • 上传文件到指定存储平台,成功返回文件信息
      POST
    • 直接读取 HttpServletRequest 中的文件进行上传,成功返回文件信息
      POST
  • 验证码生成V2
    • 生成验证码
      GET
  • 登录接口V1
    • 用户注册
      POST
    • 用户登录
      POST
    • 用户注销
      POST
    • 获取当前登录用户
      GET
  • 限流测试接口V1
    • redisTest
      GET
    • mapindex
      GET
  • 限流测试接口V2
    • rateLimitTestV2
      GET
  • 文件上传接口V2
    • 单个上传文件
      POST
    • 多个上传文件
      POST
  • 通义千问AIGC接口V1
    • send
    • aiTalk
  • Api加解密接口V1
    • 测试 请求加密
    • 测试 返回加密
    • 测试 请求参数加密和解密、返回数据加密和解密
    • 测试 数组加密和解密
  • 发送qq邮件验证码接口
    • sendEmail
  • 点赞接口V1
    • like
    • unlike
    • getProductLikeCount
    • isLiked
  • 问题接口V1
    • 单题添加
    • 批量删除试题
    • 分页查询试题
    • 根据试题id获取单题详情
    • 修改试题
  • 限流测试接口V3
    • limit3
  • Ip查询接口V1
    • getIp
  • 定时任务接口V1
    • saveJob
    • updateJob
    • deleteJobById
    • 根据id获得任务
    • 获得任务列表
    • 更改任务的状态
    • 执行某个任务
    • 获取所有job分组
  • 定时任务接口V2
    • listJobLogs
    • deleteJobLogs
    • cleanJobLogs
    • listJobLogGroups
  • 评论接口V1
    • 添加评论
    • 获取评论
    • 根据commentId获取回复
    • 获取前六个评论
    • 审核评论
    • 删除评论
  • 敏感词过滤接口V1
    • test
  • Redis监控接口V2
    • Redis详细信息
    • Redis历史性能指标查询(过去一小时)
    • getKeysSize
    • 获取redis key数量 for 报表
    • 获取redis 内存 for 报表
    • 获取redis 全部信息 for 报表
    • getMemoryInfo
    • queryDiskInfo
  • 内存监控接口V2
    • 内存详情
  • 广告接口V1
    • 增加公告
    • 删除广告
    • 修改上下线状态
    • 获取广告详情
    • 修改广告
    • 分页查询广告
  • 公告接口V2
    • 公告列表
    • 公告详情
    • 添加公告
    • 修改公告
    • 删除公告
  • 监控信息V1
    • Redis信息
    • 服务器信息
  • 商品评论接口V2
    • 分页查询
    • 通过id查询商品评论
    • 新增商品评论
    • 修改商品评论
    • 通过id删除商品评论
  • 文件上传接口V3
    • 文件上传
    • 文件删除
  • QrCode二维码生成接口V1
    • gen
  • QrCode二维码生成接口V2
    • generateBlackAndWhiteQRCode
    • generateQRCodeWithLogo
    • generateColorQRCode
    • generateBackgroundImageQRCode
    • generateSpecialShapeQRCode
    • generateImageFilledQRCode
    • generateGifQRCode
  • 公告接口V1
    • 分页查询
    • 通过id查询公告管理
    • 新增公告管理
    • 修改公告管理
    • 通过id删除公告管理
  • 签到接口V1
    • countSignInToday
    • countSignInThisWeek
    • countUserSignInThisMonth
    • signIn
  • 菜单接口V1
    • 添加后台菜单
    • 修改后台菜单
    • 根据ID获取菜单详情
    • 根据ID删除后台菜单
    • 分页查询后台菜单
    • 树形结构返回所有菜单列表
    • 修改菜单显示状态
  • 部门信息
    • 部门列表
    • 部门详情
    • 获取部门树级结构
    • 新增部门
    • 修改部门
    • 删除部门
  • 邮件发送接口V1
    • send
  • AI相关接口V1
    • nlp
    • nlp
  • 公告接口V3
    • 新增
    • 删除
    • 批量删除
    • 修改
    • 根据ID查询
    • 查询所有
    • 分页查询
  • 权限接口V1
    • 用户登录
    • 用户注册
    • 发送验证码
    • 获取当前用户信息
    • 更新用户信息
  • 音乐接口V1
    • 导出音乐
    • 保存或更新音乐
    • 分页查询音乐
    • 查询音乐详情
    • 获取音乐来源配置
    • 删除音乐
  • 公司接口V1
    • 列表
    • 列表(分页)
    • 详情
    • 新增
    • 修改
    • 删除
  • 菜单接口V2
    • 列表
    • 列表(分页)
    • 详情
    • 新增
    • 修改
    • 删除
  • 小说作者端接口
    • 作家注册接口
    • 作家状态查询接口
    • 小说发布接口
    • 小说发布列表查询接口
    • 小说章节发布接口
    • 小说章节删除接口
    • 小说章节查询接口
    • 小说章节更新接口
    • 小说章节发布列表查询接口
  • 小说接口
    • 小说分类列表查询接口
    • 小说信息查询接口
    • 增加小说点击量接口
    • 小说最新章节相关信息查询接口
    • 小说推荐列表查询接口
    • 小说章节列表查询接口
    • 小说内容相关信息查询接口
    • 获取上一章节ID接口
    • 获取下一章节ID接口
    • 小说点击榜查询接口
    • 小说新书榜查询接口
    • 小说更新榜查询接口
  • 连通性测试接口
    • 测试 MySQL 的延迟(单位:毫秒)
    • 测试 Redis 的延迟(单位:毫秒)
  • 日志接口V1
    • delete
    • deleteAll
    • findById
    • findListByPage
    • test
  • hrm-员工花名册
    • listTalents
    • 查询员工花名册列表
    • 导出员工花名册列表
    • 获取员工花名册详细信息
    • 获取人才详情信息
    • 新增员工花名册
    • 修改员工花名册
    • 员工流程审批
    • 删除员工花名册
  • hrm-职级管理
    • 查询职级管理列表
    • 导出职级管理列表
    • 获取职级管理详细信息
    • 新增职级管理
    • 修改职级管理
    • 删除职级管理
  • mes-排班计划
    • 查询排班计划列表
    • 导出排班计划列表
    • 获取排班计划详细信息
    • 新增排班计划
    • 修改排班计划
    • 删除排班计划
  • mes-班组接口
    • 查询班组列表
    • 查询所有班组列表
    • 导出班组列表
    • 获取班组详细信息
    • 新增班组
    • 修改班组
    • 删除班组
  • mes-计划班次
    • 查询计划班次列表
    • 导出计划班次列表
    • 新增计划班次
    • 修改计划班次
    • 删除计划班次
  • mes-节假日设置
    • 查询节假日设置列表
    • 导出节假日设置列表
    • 获取节假日设置详细信息
    • 新增节假日设置
    • 修改节假日设置
    • 删除节假日设置
  • mes-排班日历
    • getCalendars
  • mes-计划班组
    • 查询计划班组列表
    • 导出计划班组列表
    • 获取计划班组详细信息
    • 新增计划班组
    • 修改计划班组
    • 删除计划班组
  • mes-班组成员
    • 查询班组成员列表
    • 导出班组成员列表
    • 获取班组成员详细信息
    • 新增班组成员
    • 删除班组成员
  1. 图片上传V1

「已废弃」

GET
/v1/upload/pic/images/{imageName}
图片上传-本地实现-根据图片名字获得地址

请求参数

Path 参数
imageName
string 
必需

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8080/v1/upload/pic/images/'

返回响应

🟢200成功
application/json
Body
inputStream
object (InputStream) 
可选
java.io.InputStream
readable
boolean  | null 
可选
open
boolean  | null 
可选
file
object (File) 
可选
java.io.File
path
string  | null 
可选
This abstract pathname's normalized pathname string. A normalized
pathname string uses the default name-separator character and does not
contain any duplicate or redundant separators.
name
string  | null 
可选
Returns the name of the file or directory denoted by this abstract
pathname. This is just the last name in the pathname's name
sequence. If the pathname's name sequence is empty, then the empty
string is returned.
parent
string  | null 
可选

Returns the pathname string of this abstract pathname's parent, or
{@code null} if this pathname does not name a parent directory.

The parent of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory.

parentFile
object (File) 
可选

Returns the abstract pathname of this abstract pathname's parent,
or{@code null} if this pathname does not name a parent
directory.

The parent of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory.

absolute
boolean  | null 
可选
Tests whether this abstract pathname is absolute. The definition of
absolute pathname is system dependent. On UNIX systems, a pathname is
absolute if its prefix is{@code "/"}. On Microsoft Windows systems, a
pathname is absolute if its prefix is a drive specifier followed by
{@code "\"}, or if its prefix is{@code "\\"}.
absolutePath
string  | null 
可选

Returns the absolute pathname string of this abstract pathname.

If this abstract pathname is already absolute, then the pathname string is simply returned as if by the{@link #getPath} method. If this abstract pathname is the empty abstract pathname then the pathname string of the current user directory, which is named by the system property{@code user.dir}, is returned. Otherwise this pathname is resolved in a system-dependent way. On UNIX systems, a relative pathname is made absolute by resolving it against the current user directory. On Microsoft Windows systems, a relative pathname is made absolute by resolving it against the current directory of the drive named by the pathname, if any; if not, it is resolved against the current user directory.

absoluteFile
object (File) 
可选
Returns the absolute form of this abstract pathname. Equivalent to
new File(this.{@link #getAbsolutePath}).
canonicalPath
string  | null 
可选

Returns the canonical pathname string of this abstract pathname.

A canonical pathname is both absolute and unique. The precise definition of canonical form is system-dependent. This method first converts this pathname to absolute form if necessary, as if by invoking the {@link #getAbsolutePath} method, and then maps it to its unique form in a system-dependent way. This typically involves removing redundant names such as{@code "."} and{@code ".."} from the pathname, resolving symbolic links (on UNIX platforms), and converting drive letters to a standard case (on Microsoft Windows platforms).

Every pathname that denotes an existing file or directory has a unique canonical form. Every pathname that denotes a nonexistent file or directory also has a unique canonical form. The canonical form of the pathname of a nonexistent file or directory may be different from the canonical form of the same pathname after the file or directory is created. Similarly, the canonical form of the pathname of an existing file or directory may be different from the canonical form of the same pathname after the file or directory is deleted.

canonicalFile
object (File) 
可选
Returns the canonical form of this abstract pathname. Equivalent to
new File(this.{@link #getCanonicalPath}).
directory
boolean  | null 
可选

Tests whether the file denoted by this abstract pathname is a
directory.

Where it is required to distinguish an I/O exception from the case that the file is not a directory, or where several attributes of the same file are required at the same time, then the{@link * java.nio.file.Files#readAttributes(Path,Class,LinkOption[]) * Files.readAttributes} method may be used.

file
boolean  | null 
可选

Tests whether the file denoted by this abstract pathname is a normal
file. A file is normal if it is not a directory and, in
addition, satisfies other system-dependent criteria. Any non-directory
file created by a Java application is guaranteed to be a normal file.

Where it is required to distinguish an I/O exception from the case that the file is not a normal file, or where several attributes of the same file are required at the same time, then the{@link * java.nio.file.Files#readAttributes(Path,Class,LinkOption[]) * Files.readAttributes} method may be used.

hidden
boolean  | null 
可选
Tests whether the file named by this abstract pathname is a hidden
file. The exact definition of hidden is system-dependent. On
UNIX systems, a file is considered to be hidden if its name begins with
a period character ({@code '.'}). On Microsoft Windows systems, a file is
considered to be hidden if it has been marked as such in the filesystem.
lastModified
integer  | null 
可选

Sets the last-modified time of the file or directory named by this
abstract pathname.

All platforms support file-modification times to the nearest second, but some provide more precision. The argument will be truncated to fit the supported precision. If the operation succeeds and no intervening operations on the file take place, then the next invocation of the {@link #lastModified} method will return the (possibly truncated){@code time} argument that was passed to this method.

writable
boolean  | null 
可选

A convenience method to set the owner's write permission for this abstract
pathname. On some platforms it may be possible to start the Java virtual
machine with special privileges that allow it to modify files that
disallow write operations.

An invocation of this method of the form{@code file.setWritable(arg)} behaves in exactly the same way as the invocation

{@code
    *     file.setWritable(arg, true)
    * }
readable
boolean  | null 
可选

A convenience method to set the owner's read permission for this abstract
pathname. On some platforms it may be possible to start the Java virtual
machine with special privileges that allow it to read files that are
marked as unreadable.

An invocation of this method of the form{@code file.setReadable(arg)} behaves in exactly the same way as the invocation

{@code
    *     file.setReadable(arg, true)
    * }
executable
boolean  | null 
可选

A convenience method to set the owner's execute permission for this
abstract pathname. On some platforms it may be possible to start the Java
virtual machine with special privileges that allow it to execute files
that are not marked executable.

An invocation of this method of the form{@code file.setExcutable(arg)} behaves in exactly the same way as the invocation

{@code
    *     file.setExecutable(arg, true)
    * }
totalSpace
integer  | null 
可选
Returns the size of the partition named by this
abstract pathname. If the total number of bytes in the partition is
greater than{@link Long#MAX_VALUE}, then{@code Long.MAX_VALUE} will be
returned.
freeSpace
integer  | null 
可选

Returns the number of unallocated bytes in the partition named by this abstract path name. If the
number of unallocated bytes in the partition is greater than
{@link Long#MAX_VALUE}, then{@code Long.MAX_VALUE} will be returned.

The returned number of unallocated bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of unallocated bytes is most likely to be accurate immediately after this call. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine. This method makes no guarantee that write operations to this file system will succeed.

usableSpace
integer  | null 
可选

Returns the number of bytes available to this virtual machine on the
partition named by this abstract pathname. If
the number of available bytes in the partition is greater than
{@link Long#MAX_VALUE}, then{@code Long.MAX_VALUE} will be returned.
When possible, this method checks for write permissions and other
operating system restrictions and will therefore usually provide a more
accurate estimate of how much new data can actually be written than
{@link #getFreeSpace}.

The returned number of available bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of available bytes is most likely to be accurate immediately after this call. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine. This method makes no guarantee that write operations to this file system will succeed.

uRL
string  | null 
可选
uRI
object (URI) 
可选
java.net.URI
string
string  | null 
可选
The string form of this URI.
absolute
boolean  | null 
可选
Tells whether or not this URI is absolute.
A URI is absolute if, and only if, it has a scheme component.
opaque
boolean  | null 
可选
Tells whether or not this URI is opaque.
A URI is opaque if, and only if, it is absolute and its
scheme-specific part does not begin with a slash character ('/').
An opaque URI has a scheme, a scheme-specific part, and possibly
a fragment; all other components are undefined.
rawSchemeSpecificPart
string  | null 
可选
Returns the raw scheme-specific part of this URI. The scheme-specific
part is never undefined, though it may be empty.
The scheme-specific part of a URI only contains legal URI
characters.
rawAuthority
string  | null 
可选
Returns the raw authority component of this URI.
The authority component of a URI, if defined, only contains the
commercial-at character ({@code '@'}) and characters in the
unreserved, punct, escaped, and other
categories. If the authority is server-based then it is further
constrained to have valid user-information, host, and port
components.
rawUserInfo
string  | null 
可选
Returns the raw user-information component of this URI.
The user-information component of a URI, if defined, only contains
characters in the unreserved, punct, escaped, and
other categories.
rawPath
string  | null 
可选
Returns the raw path component of this URI.
The path component of a URI, if defined, only contains the slash
character ({@code '/'}), the commercial-at character ({@code '@'}),
and characters in the unreserved, punct, escaped,
and other categories.
rawQuery
string  | null 
可选
Returns the raw query component of this URI.
The query component of a URI, if defined, only contains legal URI
characters.
rawFragment
string  | null 
可选
Returns the raw fragment component of this URI.
The fragment component of a URI, if defined, only contains legal URI
characters.
contentAsByteArray
array[number] | null 
可选
filename
string  | null 
可选
description
string  | null 
可选
示例
{
  "inputStream": {},
  "readable": false,
  "open": false,
  "file": {
    "path": "",
    "name": "",
    "parent": "",
    "parentFile": {
      "path": "",
      "name": "",
      "parent": "",
      "parentFile": {},
      "absolute": false,
      "absolutePath": "",
      "absoluteFile": {},
      "canonicalPath": "",
      "canonicalFile": {},
      "directory": false,
      "file": false,
      "hidden": false,
      "lastModified": 0,
      "writable": false,
      "readable": false,
      "executable": false,
      "totalSpace": 0,
      "freeSpace": 0,
      "usableSpace": 0
    },
    "absolute": false,
    "absolutePath": "",
    "absoluteFile": {
      "path": "",
      "name": "",
      "parent": "",
      "parentFile": {},
      "absolute": false,
      "absolutePath": "",
      "absoluteFile": {},
      "canonicalPath": "",
      "canonicalFile": {},
      "directory": false,
      "file": false,
      "hidden": false,
      "lastModified": 0,
      "writable": false,
      "readable": false,
      "executable": false,
      "totalSpace": 0,
      "freeSpace": 0,
      "usableSpace": 0
    },
    "canonicalPath": "",
    "canonicalFile": {
      "path": "",
      "name": "",
      "parent": "",
      "parentFile": {},
      "absolute": false,
      "absolutePath": "",
      "absoluteFile": {},
      "canonicalPath": "",
      "canonicalFile": {},
      "directory": false,
      "file": false,
      "hidden": false,
      "lastModified": 0,
      "writable": false,
      "readable": false,
      "executable": false,
      "totalSpace": 0,
      "freeSpace": 0,
      "usableSpace": 0
    },
    "directory": false,
    "file": false,
    "hidden": false,
    "lastModified": 0,
    "writable": false,
    "readable": false,
    "executable": false,
    "totalSpace": 0,
    "freeSpace": 0,
    "usableSpace": 0
  },
  "uRL": "",
  "uRI": {
    "string": "",
    "absolute": false,
    "opaque": false,
    "rawSchemeSpecificPart": "",
    "rawAuthority": "",
    "rawUserInfo": "",
    "rawPath": "",
    "rawQuery": "",
    "rawFragment": ""
  },
  "contentAsByteArray": [
    0
  ],
  "filename": "",
  "description": ""
}
上一页
「已废弃」
下一页
「已废弃」
Built with