feat: お知らせの優先順位機能 (#118)

ついでにお知らせのページング処理、わかったのボタン押したとき更新されるように
This commit is contained in:
まっちゃとーにゅ
2023-07-28 00:29:33 +09:00
committed by GitHub
parent 5b4948768a
commit fe0f7a91a3
12 changed files with 126 additions and 69 deletions

View File

@@ -33,6 +33,13 @@ export class Announcement {
})
public imageUrl: string | null;
// UIに表示する際の並び順用(大きいほど先頭)
@Index()
@Column('integer', {
default: 0,
})
public displayOrder: number;
@Index()
@Column('varchar', {
...id(),