diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-10 14:03:28 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-10 14:03:28 +0900 |
| commit | d04014f875a03ae9b8f0f36338fd2446e7eb3150 (patch) | |
| tree | 447ab37a76486c9ec2ad5985e86c1f325b61f73c /src/server/api/endpoints/admin/announcements | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.83.0 (diff) | |
| download | misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.tar.gz misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.tar.bz2 misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/server/api/endpoints/admin/announcements')
4 files changed, 0 insertions, 33 deletions
diff --git a/src/server/api/endpoints/admin/announcements/create.ts b/src/server/api/endpoints/admin/announcements/create.ts index 3675e50bac..794c35023b 100644 --- a/src/server/api/endpoints/admin/announcements/create.ts +++ b/src/server/api/endpoints/admin/announcements/create.ts @@ -4,11 +4,6 @@ import { Announcements } from '../../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': 'アナウンスを作成します。', - 'en-US': 'Create a announcement.' - }, - tags: ['admin'], requireCredential: true as const, @@ -34,35 +29,29 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Announcement.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Announcement was created.' }, updatedAt: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'date-time', - description: 'The date that the Announcement was updated.' }, title: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement title.' }, text: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement text.' }, imageUrl: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Announcement image.' } } } diff --git a/src/server/api/endpoints/admin/announcements/delete.ts b/src/server/api/endpoints/admin/announcements/delete.ts index 44a46ae435..6c28054da8 100644 --- a/src/server/api/endpoints/admin/announcements/delete.ts +++ b/src/server/api/endpoints/admin/announcements/delete.ts @@ -10,11 +10,6 @@ export const meta = { requireCredential: true as const, requireModerator: true, - desc: { - 'ja-JP': 'アナウンスを削除します。', - 'en-US': 'Delete a announcement.' - }, - params: { id: { validator: $.type(ID) diff --git a/src/server/api/endpoints/admin/announcements/list.ts b/src/server/api/endpoints/admin/announcements/list.ts index a42f24c45e..a14f0c0bdc 100644 --- a/src/server/api/endpoints/admin/announcements/list.ts +++ b/src/server/api/endpoints/admin/announcements/list.ts @@ -5,11 +5,6 @@ import { Announcements, AnnouncementReads } from '../../../../../models'; import { makePaginationQuery } from '../../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'アナウンスのリストを表示します。', - 'en-US': 'List announcements.' - }, - tags: ['admin'], requireCredential: true as const, @@ -41,40 +36,33 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Announcement.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Announcement was created.' }, updatedAt: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'date-time', - description: 'The date that the Announcement was updated.' }, text: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement text.' }, title: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement title.' }, imageUrl: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Announcement image.' }, reads: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of people who read this announcement.' } } } diff --git a/src/server/api/endpoints/admin/announcements/update.ts b/src/server/api/endpoints/admin/announcements/update.ts index c869e7c9c6..6e9a43d346 100644 --- a/src/server/api/endpoints/admin/announcements/update.ts +++ b/src/server/api/endpoints/admin/announcements/update.ts @@ -5,11 +5,6 @@ import { Announcements } from '../../../../../models'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': 'アナウンスの内容を変更します。', - 'en-US': 'Update a annoucement.' - }, - tags: ['admin'], requireCredential: true as const, |