获取每日任务数据

请求URL

/dailyProgress/getDailyTasks GET POST

请求体 application/json

{
	"date":"string //日期,格式为yyyy-MM-dd"
}

返回结果

[{
	"id":"long //任务ID",
	"taskName":"string //任务名称",
	"taskType":"string //任务类型",
	"durationMinutes":"int //预计完成时间(分钟)",
	"status":"int //任务状态:0-未开始,1-进行中,2-已完成",
	"scriptureContent":{
		"id":"long //经文ID",
		"reference":"string //经文引用",
		"content":"string //经文内容"
	},
	"taskContent":{
		"id":"long //内容ID",
		"taskId":"long //关联任务ID",
		"taskType":"string //任务类型",
		"title":"string //标题",
		"chapter":"string //章节",
		"content":"string //内容",
		"guideText":"string //指导文本",
		"mediaUrl":"string //媒体URL"
	}
}]

获取用户打卡日历数据

请求URL

/dailyProgress/getCheckInCalendar GET POST

返回结果

{
	"currentWeek":[{
		"date":"string //日期(格式:yyyy-MM-dd)",
		"dayOfWeek":"int //星期几(1-7,对应周一到周日)",
		"dayOfWeekLetter":"string //星期几英文首字母(M-Monday, T-Tuesday, W-Wednesday, T-Thursday, F-Friday, S-Saturday, S-Sunday)",
		"checkedIn":"boolean //是否已打卡",
		"completedTaskCount":"int //完成任务数",
		"totalTaskCount":"int //总任务数"
	}],
	"lastWeek":[{
		"date":"string //日期(格式:yyyy-MM-dd)",
		"dayOfWeek":"int //星期几(1-7,对应周一到周日)",
		"dayOfWeekLetter":"string //星期几英文首字母(M-Monday, T-Tuesday, W-Wednesday, T-Thursday, F-Friday, S-Saturday, S-Sunday)",
		"checkedIn":"boolean //是否已打卡",
		"completedTaskCount":"int //完成任务数",
		"totalTaskCount":"int //总任务数"
	}]
}

更新任务状态

请求URL

/dailyProgress/updateTaskStatus GET POST

请求体 application/json

{
	"userId":"long //用户ID",
	"taskId":"long //任务ID",
	"status":"int //任务状态:0-未开始,1-进行中,2-已完成",
	"progressPercentage":"int //进度百分比"
}

返回结果

object{}

获取本周和上周的打卡情况

请求URL

/dailyProgress/getWeeklyCheckIn GET POST

返回结果

{
	"currentWeek":[{
		"date":"string //日期(格式:yyyy-MM-dd)",
		"dayOfWeek":"int //星期几(1-7,对应周一到周日)",
		"dayOfWeekLetter":"string //星期几英文首字母(M-Monday, T-Tuesday, W-Wednesday, T-Thursday, F-Friday, S-Saturday, S-Sunday)",
		"checkedIn":"boolean //是否已打卡",
		"completedTaskCount":"int //完成任务数",
		"totalTaskCount":"int //总任务数"
	}],
	"lastWeek":[{
		"date":"string //日期(格式:yyyy-MM-dd)",
		"dayOfWeek":"int //星期几(1-7,对应周一到周日)",
		"dayOfWeekLetter":"string //星期几英文首字母(M-Monday, T-Tuesday, W-Wednesday, T-Thursday, F-Friday, S-Saturday, S-Sunday)",
		"checkedIn":"boolean //是否已打卡",
		"completedTaskCount":"int //完成任务数",
		"totalTaskCount":"int //总任务数"
	}]
}

保存用户与上帝的关系值

请求URL

/dailyProgress/saveUserGodRelationship POST

请求体 application/json

{
	"relationshipValue":"int //关系值(0-100)",
	"dayTime":"string //记录日期时间 2025-03-03"
}

返回结果

object{}

获取用户指定日期与上帝的关系值

请求URL

/dailyProgress/getUserGodRelationshipByDate POST

请求体 application/json

{
	"relationshipValue":"int //关系值(0-100)",
	"dayTime":"string //记录日期时间 2025-03-03"
}

返回结果

{
	"relationshipValue":"int //关系值(0-100)",
	"dayTime":"string //记录日期时间 2025-03-03"
}