文档
测试

任务-完成任务

POST
http://47.108.179.208:8060/v1.0/task/success

请求头

参数名
类型
描述
必填
token
string
示例:ofxfwYXp+yJQNnk6KWkmXqPZfwxmqvbrWlWllot3xSPhm5CgzlWoMECl/bmptbr9pAo0NqIpCfA8zGHIroL/7iCydPjL+7LgEsMeFC2lxZU=
必填

请求参数

参数名
类型
描述
必填
id
int
示例:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
message
string
示例:操作成功
必填

说明 / 示例

public class Task implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键id") @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty(value = "任务类型[1:日常任务 2:充电任务]") private Integer taskType; @ApiModelProperty(value = "任务名称") private String taskName; @ApiModelProperty(value = "任务描述") private String taskDesc; @ApiModelProperty(value = "任务奖励伏特") private Integer taskVolt; @ApiModelProperty(value = "任务可完成次数") private Integer taskNum; @ApiModelProperty(value = "任务奖励有效时间(h)") private Integer taskTime; @ApiModelProperty(value = "创建人id") private Integer createUserId; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "创建时间") @TableField(fill = FieldFill.INSERT) private Date createTime; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) private Date updateTime; @ApiModelProperty(value = "状态[0:编辑 1:发布 2:下架]") private Integer status; //@ApiModelProperty(value = "以及完成任务次数") @TableField(exist = false) private Integer successNum = 0; }