Commit 2a91c4a8 authored by Skyler's avatar Skyler

add file/upload

parent 432d641e
......@@ -1921,4 +1921,33 @@ paths:
seckill:
pre_payment_percentage: 0.2
deduct_a_percentage: 0.1
# ----上传文件-------------
/file/upload:
post:
summary: 上传文件
description: 上传文件
parameters:
- name: file
in: formData
description: 选择文件
required: true
type: file
format: file
- name: img_type
in: formData
description: 文件用途, 详见http://git.gengmei.cc/backend/gm-upload/blob/master/gm_upload/consts.py
required: true
type: integer
format: integer
tags:
- Business
responses:
'200':
description: OK
schema: {}
examples:
application/json:
error: 0
message: ''
data: 'full_image_url'
# ----Skyler end--------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment