新增:邀请用户链接生成

This commit is contained in:
2022-06-15 18:07:23 +08:00
parent 42d2b51f7f
commit c42f3d5928
13 changed files with 245 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
class Projects::ProjectInviteLinks::CreateForm < BaseForm
attr_accessor :user_id, :project_id, :role, :is_apply
validates :user_id, :project_id, :role, presence: true
validates :role, inclusion: { in: %w(manager developer reporter), message: "请输入正确的权限." }
validates :is_apply, inclusion: {in: [true, false], message: "请输入是否需要管理员审核."}
end