mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
Rename CreateColumnService to ColumnService
This commit is contained in:
parent
5923e8897a
commit
43e81c46b7
8 changed files with 8 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class CreateColumnService
|
||||
class ColumnService
|
||||
extend Service
|
||||
|
||||
attr_reader :errors, :column
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class CreateAssetColumnService < CreateColumnService
|
||||
class CreateAssetColumnService < ColumnService
|
||||
def initialize(user, repository_id, name)
|
||||
super(user, repository_id, name)
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class CreateDateColumnService < CreateColumnService
|
||||
class CreateDateColumnService < ColumnService
|
||||
def initialize(user, repository_id, name)
|
||||
super(user, repository_id, name)
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class CreateListColumnService < CreateColumnService
|
||||
class CreateListColumnService < ColumnService
|
||||
def initialize(user, repository_id, name, list_items)
|
||||
super(user, repository_id, name)
|
||||
@list_items = list_items
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class CreateStatusColumnService < RepositoryColumns::CreateColumnService
|
||||
class CreateStatusColumnService < RepositoryColumns::ColumnService
|
||||
def initialize(user:, repository:, params:, team:)
|
||||
super(user: user, repository: repository, team: team, column_name: params[:name])
|
||||
@params = params
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class CreateTextColumnService < CreateColumnService
|
||||
class CreateTextColumnService < ColumnService
|
||||
def initialize(user, repository_id, name)
|
||||
super(user, repository_id, name)
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class DeleteStatusColumnService < RepositoryColumns::CreateColumnService
|
||||
class DeleteStatusColumnService < RepositoryColumns::ColumnService
|
||||
def initialize(user:, team:, column:)
|
||||
super(user: user, team: team, column_name: nil, repository: column.repository)
|
||||
@column = column
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryColumns
|
||||
class UpdateStatusColumnService < RepositoryColumns::CreateColumnService
|
||||
class UpdateStatusColumnService < RepositoryColumns::ColumnService
|
||||
def initialize(user:, team:, column:, params:)
|
||||
super(user: user, repository: column.repository, team: team, column_name: nil)
|
||||
@column = column
|
||||
|
|
Loading…
Add table
Reference in a new issue