新增:issue编辑删除接口

This commit is contained in:
2023-02-14 23:19:17 +08:00
parent db2d398d94
commit 404a6a00e7
12 changed files with 478 additions and 87 deletions

View File

@@ -68,9 +68,9 @@ class Issue < ApplicationRecord
has_many :issue_tags, through: :issue_tags_relates
has_many :issue_times, dependent: :destroy
has_many :issue_depends, dependent: :destroy
has_many :issue_assigners
has_many :issue_assigners, dependent: :destroy
has_many :assigners, through: :issue_assigners
has_many :issue_participants
has_many :issue_participants, dependent: :destroy
has_many :participants, through: :issue_participants
has_many :show_participants, -> {joins(:issue_participants).where.not(issue_participants: {participant_type: "atme"}).distinct}, through: :issue_participants, source: :participant
has_many :comment_journals, -> {where.not(notes: nil)}, class_name: "Journal", :as => :journalized