Skip to content

allow multiple members to accept same event #185

@wen-templari

Description

@wen-templari

多人协作场景下的工时计算

在多人协作场景下,每人有同样的基础时长和最高时长。

修改数据结构

字段名 类型 描述
eventId string 唯一事件标识
studentId string 维修参与者编号
tag string 标签(如 size:s / size:m 等)
timestamp datetime 记录提交时间
isLead boolean 是否主负责人
comment string 简要说明该人员的具体操作
approvedBy string 审核人(如班长/指导老师)

可以将所有这些记录放入一张 event_participation 表中。

事件状态逻辑修改

指令 用途
@nbtca-bot accept 当前用户参与维修
@nbtca-bot drop 当前用户取消参与
@nbtca-bot tag size:m 仅限负责人或管理员设置事件标签
@nbtca-bot comment xxx 当前用户说明自己参与的工作内容
@nbtca-bot commit 负责人提交
@nbtca-bot reject 管理员驳回
@nbtca-bot close 管理员或负责人关闭
@nbtca-bot summary 查看当前协作人列表与标签状态

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions