@yolo-croket-dev/entity-v2 0.2.34-jun.6 → 0.2.34-jun.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demand.modules/demand-like/demand-like.entity.d.ts +14 -0
- package/demand.modules/demand-like/demand-like.entity.js +2 -0
- package/demand.modules/demand-like/index.d.ts +0 -0
- package/demand.modules/demand-like/index.js +1 -0
- package/demand.modules/demand-log/demand-log.entity.d.ts +3 -1
- package/demand.modules/demand-log/demand-log.entity.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 구해줘 게시글 좋아요 */
|
|
5
|
+
export default interface DemandLikeEntity {
|
|
6
|
+
_id: Types.ObjectId | string;
|
|
7
|
+
/** 구해줘 게시글 아이디 */
|
|
8
|
+
demandId: string | Types.ObjectId;
|
|
9
|
+
/** 좋아요 누른 유저 아이디 */
|
|
10
|
+
userId: string | Types.ObjectId;
|
|
11
|
+
/** 좋아요 등록 일자 */
|
|
12
|
+
regDate: Date;
|
|
13
|
+
}
|
|
14
|
+
export { DemandLikeEntity };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -5,7 +5,9 @@ export declare enum DemandLogTypeEnum {
|
|
|
5
5
|
EDIT_BY_USER = "EDIT_BY_USER",
|
|
6
6
|
EDIT_BY_ADMIN = "EDIT_BY_ADMIN",
|
|
7
7
|
DELETE_SOFT_BY_USER = "DELETE_SOFT_BY_USER",
|
|
8
|
-
DELETE_HARD_BY_ADMIN = "DELETE_HARD_BY_ADMIN"
|
|
8
|
+
DELETE_HARD_BY_ADMIN = "DELETE_HARD_BY_ADMIN",
|
|
9
|
+
LIKE_BY_USER = "LIKE_BY_USER",
|
|
10
|
+
UNLIKE_BY_USER = "UNLIKE_BY_USER"
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* @author jun
|
|
@@ -8,4 +8,6 @@ var DemandLogTypeEnum;
|
|
|
8
8
|
DemandLogTypeEnum["EDIT_BY_ADMIN"] = "EDIT_BY_ADMIN";
|
|
9
9
|
DemandLogTypeEnum["DELETE_SOFT_BY_USER"] = "DELETE_SOFT_BY_USER";
|
|
10
10
|
DemandLogTypeEnum["DELETE_HARD_BY_ADMIN"] = "DELETE_HARD_BY_ADMIN";
|
|
11
|
+
DemandLogTypeEnum["LIKE_BY_USER"] = "LIKE_BY_USER";
|
|
12
|
+
DemandLogTypeEnum["UNLIKE_BY_USER"] = "UNLIKE_BY_USER";
|
|
11
13
|
})(DemandLogTypeEnum = exports.DemandLogTypeEnum || (exports.DemandLogTypeEnum = {}));
|