-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 增加offline_event_record表, 完成好友互发消息
- Loading branch information
1 parent
b74b3cd
commit f06ecff
Showing
10 changed files
with
358 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty } from 'class-validator'; | ||
|
||
export class SaveMessageDto { | ||
@ApiProperty({ example: '' }) | ||
@IsNotEmpty() | ||
user_account: string; | ||
|
||
@IsNotEmpty() | ||
friend_account: string; | ||
|
||
@IsNotEmpty() | ||
mood_state: string; | ||
|
||
@IsNotEmpty() | ||
message_style: string; | ||
|
||
@IsNotEmpty() | ||
message: string; | ||
|
||
@IsNotEmpty() | ||
read_flag: boolean; | ||
} | ||
|
||
export class updateFlagDto { | ||
@ApiProperty({ example: '' }) | ||
@IsNotEmpty() | ||
id: string[] | string; | ||
|
||
@IsNotEmpty() | ||
user_account: string; | ||
|
||
@IsNotEmpty() | ||
friend_account: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { PrimaryGeneratedColumn, Column, Entity } from 'typeorm'; | ||
|
||
@Entity() | ||
export class message_record { | ||
@PrimaryGeneratedColumn() | ||
id: number; | ||
|
||
@Column() | ||
message_id: string; | ||
|
||
@Column() | ||
user_account: string; | ||
|
||
@Column() | ||
friend_account: string; | ||
|
||
@Column() | ||
mood_state: string; | ||
|
||
@Column() | ||
message: string; | ||
|
||
@Column() | ||
create_time: string; | ||
|
||
@Column() | ||
message_style: string; | ||
|
||
@Column() | ||
read_flag: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { PrimaryGeneratedColumn, Column, Entity } from 'typeorm'; | ||
|
||
@Entity() | ||
export class offline_events_record { | ||
@PrimaryGeneratedColumn() | ||
id: number; | ||
|
||
@Column() | ||
user_account: string; | ||
|
||
@Column() | ||
friend_account: string; | ||
|
||
@Column() | ||
event_type: string; | ||
|
||
@Column() | ||
create_time: string; | ||
|
||
@Column() | ||
update_time: string; | ||
|
||
@Column() | ||
end_flag: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.