feat(supervisor): allow up to 3 supervisors per owner

This commit is contained in:
nepiedg
2026-04-16 12:02:25 +08:00
parent 6cd6424561
commit 50352d67ca
3 changed files with 76 additions and 7 deletions
@@ -62,6 +62,8 @@ func (h *Handler) BindSupervisorInvite(c *gin.Context) {
msg = "不能绑定自己"
case "监督关系已存在":
msg = "已绑定,无需重复操作"
case "监督人已达上限":
msg = "对方监督人已达上限(最多 3 人)"
}
}
c.JSON(http.StatusBadRequest, model.Error(http.StatusBadRequest, msg))