文档
测试

获取用户任务

GET
localhost:4963/api/plan?userId=123

接口描述

获取plan

请求参数

参数名
类型
描述
必填
userId
String
当前授权用户的userId
必填

响应参数

application/json
参数名
类型
描述
必填
code
int
0
可选
msg
string
''
可选
data
object
数据信息
可选
total
int
3
必填
datas
array
数据列表
必填
id
int
任务id
必填
name
string
任务名
必填
dailyTarget
string
每日打卡目标
必填
description
string
任务描述
必填
planDays
string
任务总天数
必填
beginDate
string
任务创建时间
必填
warnDate
string
任务提醒时间
必填
lastWarnDate
string
任务最后一次提醒时间
必填
userId
string
用户ID
必填
planProgress
int
任务打卡进度
必填
email
string
示例:pmf1417@163.com
必填
finish
int
0任务未完成全部打卡,1完成任务
必填
toDay
int
0今天还没有打卡,1今天已经打卡过了
必填

说明 / 示例

{ "code": 0, "msg": "", "data": { "total": 3, "datas": [ { "id": 1, "name": "test1111", "dailyTarget": "test1111", "description": "test1111", "planDays": "3", "beginDate": "1663682304768", "warnDate": "1663809600000", "lastWarnDate": "1663809930000", "userId": "123", "planProgress": 2, "email": "pmf1417@163.com", "finish": 0, "toDay": 1 }, { "id": 2, "name": "test222", "dailyTarget": "test222", "description": "test222", "planDays": "3", "beginDate": "1663682304768", "warnDate": "1663809719000", "lastWarnDate": "1663809822000", "userId": "123", "planProgress": 0, "email": "pmf1417@163.com", "finish": 0, "toDay": 0 }, { "id": 7, "name": "test22", "dailyTarget": "test444", "description": "test444", "planDays": "3", "beginDate": "1663682304768", "warnDate": "1663682394768", "lastWarnDate": "1663682994768", "userId": "123", "planProgress": 3, "email": "pmf1417@163.com", "finish": 1, "toDay": 1 } ] } }