|
@@ -3303,3 +3303,41 @@ export function getNodeTemplateList(params = {}) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const getHomeBanners = () => request('/api/home-banner/list', 'POST', {})
|
|
export const getHomeBanners = () => request('/api/home-banner/list', 'POST', {})
|
|
|
|
|
+
|
|
|
|
|
+// ===== 规划师审核工作台(A1) =====
|
|
|
|
|
+
|
|
|
|
|
+export const getGuideMyFamilies = () =>
|
|
|
|
|
+ request('/api/guide/families/my-families', 'POST')
|
|
|
|
|
+
|
|
|
|
|
+export const getGuideFamilyMembers = (familyId) =>
|
|
|
|
|
+ request(`/api/guide/families/${familyId}/members`, 'POST')
|
|
|
|
|
+
|
|
|
|
|
+/** teacherId 仅 admin 有效;teacher 强制按自己过滤 */
|
|
|
|
|
+export const getGuidePendingPlans = (familyId, teacherId) => {
|
|
|
|
|
+ const data = {}
|
|
|
|
|
+ if (teacherId) data.teacherId = teacherId
|
|
|
|
|
+ return request(`/api/guide/families/${familyId}/plans/pending`, 'POST', data)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export const updateGuidePlanContent = (familyId, planId, planContent, planJson) =>
|
|
|
|
|
+ request(`/api/guide/families/${familyId}/plans/${planId}/update`, 'POST', {
|
|
|
|
|
+ planContent,
|
|
|
|
|
+ planJson
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+/** 返回 { planId, status, taskGenerated, taskCount, message },taskGenerated=false 表示已发布但未生成任务 */
|
|
|
|
|
+export const approveGuidePlan = (familyId, planId, comment) =>
|
|
|
|
|
+ request(`/api/guide/families/${familyId}/plans/${planId}/approve`, 'POST', { comment })
|
|
|
|
|
+
|
|
|
|
|
+export const rejectGuidePlan = (familyId, planId, comment) =>
|
|
|
|
|
+ request(`/api/guide/families/${familyId}/plans/${planId}/reject`, 'POST', { comment })
|
|
|
|
|
+
|
|
|
|
|
+export const getGuideChildPendingTasks = (familyId, memberId) =>
|
|
|
|
|
+ request(`/api/guide/families/${familyId}/children/${memberId}/pending-review`, 'POST')
|
|
|
|
|
+
|
|
|
|
|
+/** approved=true 通过 / false 驳回;字段名对齐 TaskReviewDTO,不能用 action */
|
|
|
|
|
+export const reviewGuideTask = (familyId, taskId, approved, comment) =>
|
|
|
|
|
+ request(`/api/guide/families/${familyId}/tasks/${taskId}/review`, 'POST', {
|
|
|
|
|
+ approved,
|
|
|
|
|
+ comment
|
|
|
|
|
+ })
|