Skip to content

Commit d8e5ee0

Browse files
committed
feat: remove usercount for group and namespace
1 parent ae27a73 commit d8e5ee0

File tree

3 files changed

+3
-43
lines changed

3 files changed

+3
-43
lines changed

openapi.json

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"hash": "90b73fc34318e4500c0d262dea3e1d1a46924ecfcf162cf1b21c488fdc130adf",
2+
"hash": "f5e3bd81146640e331c518e615e9b2deb3ae968cae0dead14e5d3b848667b195",
33
"openapi": "3.0.0",
44
"paths": {
55
"/hello": {
@@ -5087,10 +5087,6 @@
50875087
"active": {
50885088
"type": "boolean",
50895089
"description": "是否启用"
5090-
},
5091-
"userCount": {
5092-
"type": "number",
5093-
"description": "人数"
50945090
}
50955091
},
50965092
"required": [
@@ -5119,10 +5115,6 @@
51195115
"type": "boolean",
51205116
"description": "是否启用"
51215117
},
5122-
"userCount": {
5123-
"type": "number",
5124-
"description": "人数"
5125-
},
51265118
"id": {
51275119
"type": "string",
51285120
"description": "Entity id"
@@ -5172,10 +5164,6 @@
51725164
"active": {
51735165
"type": "boolean",
51745166
"description": "是否启用"
5175-
},
5176-
"userCount": {
5177-
"type": "number",
5178-
"description": "人数"
51795167
}
51805168
}
51815169
},
@@ -5227,10 +5215,6 @@
52275215
"exportable": {
52285216
"type": "boolean",
52295217
"description": "是否可导出"
5230-
},
5231-
"userCount": {
5232-
"type": "number",
5233-
"description": "人数"
52345218
}
52355219
},
52365220
"required": [
@@ -5287,10 +5271,6 @@
52875271
"type": "boolean",
52885272
"description": "是否可导出"
52895273
},
5290-
"userCount": {
5291-
"type": "number",
5292-
"description": "人数"
5293-
},
52945274
"id": {
52955275
"type": "string",
52965276
"description": "Entity id"
@@ -5364,10 +5344,6 @@
53645344
"exportable": {
53655345
"type": "boolean",
53665346
"description": "是否可导出"
5367-
},
5368-
"userCount": {
5369-
"type": "number",
5370-
"description": "人数"
53715347
}
53725348
}
53735349
},

src/group/entities/group.entity.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
22
import { IntersectionType } from '@nestjs/swagger';
3-
import { IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';
3+
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';
44
import { Document } from 'mongoose';
55

66
import { helper, MongoEntity } from 'src/mongo';
@@ -38,14 +38,6 @@ export class GroupDoc {
3838
@IsBoolean()
3939
@Prop()
4040
active?: boolean;
41-
42-
/**
43-
* 人数
44-
*/
45-
@IsOptional()
46-
@IsNumber()
47-
@Prop()
48-
userCount?: number;
4941
}
5042

5143
export const GroupSchema = helper(SchemaFactory.createForClass(GroupDoc));

src/namespace/entities/namespace.entity.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
22
import { IntersectionType } from '@nestjs/swagger';
3-
import { IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';
3+
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';
44
import { Document } from 'mongoose';
55

66
import { IsNs } from 'src/common/validate';
@@ -91,14 +91,6 @@ export class NamespaceDoc {
9191
@IsBoolean()
9292
@Prop()
9393
exportable?: boolean;
94-
95-
/**
96-
* 人数
97-
*/
98-
@IsOptional()
99-
@IsNumber()
100-
@Prop()
101-
userCount?: number;
10294
}
10395

10496
export const NamespaceSchema = helper(SchemaFactory.createForClass(NamespaceDoc));

0 commit comments

Comments
 (0)