Commit b8c5e885 authored by quwei's avatar quwei 🤸🏼

Upload New File

parent 061d2cd4
Pipeline #3681 canceled with stages
# 新增权益项
> URL: http://localhost:13021/jac/accumulate/memberBenefit/add
>
> Origin Url: http://localhost:13021/jac/accumulate/memberBenefit/add
>
> Type: POST
### Request headers
|Header Name| Header Value|
|---------|------|
|Token|5bf30e459b854767b243906e4df74b56|
### Parameters
##### Path parameters
| Parameter | Type | Value | Description |
|---------|------|------|------------|
##### URL parameters
|Required| Parameter | Type | Value | Description |
|---------|---------|------|------|------------|
##### Body parameters
###### JSON
```
{
"name": "生日礼二",
"iconUrl": "http://sy.esvtek.com:15001/file/download/direct/12B46A0CE25B67A3C423CF7BB3C7CDAA3B6BA8DBBB1399CB58816FA88CDFDA52F4EDBCFCC3CEE08B2BBAE320D736EB26",
"intro": "生日当月可领",
"description": "详细说明……",
"buttonType": 2,
"buttonLink": "/integral/medal-config",
"status": 0
}
```
###### JSON document
```
{
"buttonType":"按钮类型:0无 1去升级 2去兑换;非0时 buttonLink 必填",
"intro":"权益简介,非必填,最多50字",
"buttonLink":"按钮跳转链接;buttonType 为 1 或 2 时必填",
"name":"权益名称,最多5个字",
"description":"权益说明,必填,最多200字",
"id":"主键,编辑时必填",
"iconUrl":"权益图标 URL(可先上传文件接口获取)",
"status":"状态:0启用 1禁用;新增默认0"
}
```
##### Form URL-Encoded
|Required| Parameter | Type | Value | Description |
|---------|---------|------|------|------------|
##### Multipart
|Required | Parameter | Type | Value | Description |
|---------|---------|------|------|------------|
### Response
##### Response example
```
{
"resultCode": 200,
"message": "新建成功",
"traceId": "2a34d428404217f6",
"data": null
}
```
##### Response document
```
{
"traceId":"接口响应ID",
"data":{},
"resultCode":"状态码",
"message":"状态码对应的信息"
}
```
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