Abigmiu

Results 32 comments of Abigmiu

when use `{select: false}`.。 // This column will not be selected by find functions and QueryBuilder @Column({select: false}) password: string if you used in `save`. i tried `class-transformer` ```typescript @Exclude()...

vite3 以上是 `import.meta.glob('source', { eager: true })`。 用 ts 的时候会提示 globEage 已经废弃了

导入 swagger 的时候如果也能有接口变动对比就好了

> > 希望主题切换的时候能添加动画 > > 有没有 参考呢 https://admin.soybeanjs.cn/dashboard/workbench

> 哪里能打开控制台啊 ctrl + shift + i 左上角 编辑 开发者工具

> 方便提供下可复现的 json 吗 ```json {"openapi":"3.0.0","paths":{"/api/meta":{"post":{"operationId":"MetaController_create","summary":"创建 meta","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMetaDto"}}}},"responses":{"201":{"description":""}},"tags":["附加数据 /meta"]},"get":{"operationId":"MetaController_getList","summary":"获取列表","parameters":[{"name":"type","required":true,"in":"query","description":"类型","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["附加数据 /meta"]}},"/api/option/webInfo":{"get":{"operationId":"OptionController_getWebInfo","summary":"获取网站信息","parameters":[],"responses":{"default":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebInfoResponse"}}}}},"tags":["选项 /option"]}},"/api/option/setting":{"get":{"operationId":"OptionController_getSetting","summary":"admin 获取可设置项","parameters":[],"responses":{"default":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminAddOptionDto"}}}}}},"tags":["选项 /option"]},"post":{"operationId":"OptionController_createSetting","summary":"admin 添加可设置项","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddOptionDto"}}}},"responses":{"default":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddOptionDto"}}}}},"tags":["选项 /option"]},"put":{"operationId":"OptionController_setWebInfo","summary":"admin 更新网站信息","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetWebInfoDto"}}}},"responses":{"200":{"description":""}},"tags":["选项 /option"]}},"/api/option/announcement":{"get":{"operationId":"OptionController_getAnnouncement","summary":"获取网站公告","parameters":[],"responses":{"default":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"tags":["选项 /option"]},"post":{"operationId":"OptionController_updateAnnouncement","summary":"更改网站公告","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"responses":{"201":{"description":""}},"tags":["选项 /option"]}},"/api/content":{"post":{"operationId":"ContentController_createContent","summary":"创建文章","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContentDto"}}}},"responses":{"201":{"description":""}},"tags":["内容"]}},"/api/content/{id}":{"put":{"operationId":"ContentController_updateContent","summary":"更新文章","parameters":[{"name":"id","required":true,"in":"path","description":"ID","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContentDto"}}}},"responses":{"200":{"description":""}},"tags":["内容"]},"get":{"operationId":"ContentController_getArticleDetail","summary":"获取文章详情","parameters":[{"name":"id","required":true,"in":"path","description":"ID","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["内容"]},"delete":{"operationId":"ContentController_deleteArticle","summary":"删除文章","parameters":[{"name":"id","required":true,"in":"path","description":"ID","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["内容"]}},"/api/content/page":{"get":{"operationId":"ContentController_getArticlePage","summary":"获取文章分页","parameters":[{"name":"page","required":false,"in":"query","description":"页数","schema":{"default":1,"type":"number"}},{"name":"size","required":false,"in":"query","description":"每页数量","schema":{"default":10,"type":"number"}}],"responses":{"200":{"description":""}},"tags":["内容"]}},"/api/content/wallpaper/page":{"get":{"operationId":"ContentController_getWallpaperPage","summary":"获取壁纸分页","parameters":[{"name":"page","required":false,"in":"query","description":"页数","schema":{"default":1,"type":"number"}},{"name":"size","required":false,"in":"query","description":"每页数量","schema":{"default":10,"type":"number"}}],"responses":{"default":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WallpaperResponse"}}}}}},"tags":["内容"]}},"/api/content/wallpaper":{"post":{"operationId":"ContentController_createWallpaper","summary":"创建壁纸","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWallpaperDto"}}}},"responses":{"201":{"description":""}},"tags":["内容"]}},"/api/content/wallpaper/freeze/{id}":{"put":{"operationId":"ContentController_toggleWallpaperFreeze","summary":"冻结/解冻壁纸","parameters":[{"name":"id","required":true,"in":"path","description":"ID","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["内容"]}},"/api/comment/{id}":{"post":{"operationId":"CommentController_createComment","summary":"创建评论","parameters":[{"name":"id","required":true,"in":"path","description":"内容 ID","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentDto"}}}},"responses":{"201":{"description":""}},"tags":["评论"]}},"/api/comment/comment/{id}":{"post":{"operationId":"CommentController_replyComment","summary":"回复评论","parameters":[{"name":"id","required":true,"in":"path","description":"被评论 ID","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentDto"}}}},"responses":{"201":{"description":""}},"tags":["评论"]}},"/api/comment/list":{"get":{"operationId":"CommentController_listComment","summary":"评论列表","parameters":[],"responses":{"default":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminCommentItemResponse"}}}}}},"tags":["评论"]}},"/api/comment/page":{"get":{"operationId":"CommentController_queryComment","summary":"评论分页","parameters":[{"name":"page","required":false,"in":"query","description":"页数","schema":{"default":1,"type":"number"}},{"name":"size","required":false,"in":"query","description":"每页数量","schema":{"default":10,"type":"number"}},{"name":"contentId","required":false,"in":"query","description":"文章 Id","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["评论"]}}},"info":{"title":"","description":"","version":"1.0.0","contact":{}},"tags":[],"servers":[],"components":{"schemas":{"CreateMetaDto":{"type":"object","properties":{"name":{"type":"string","description":"名称"},"slug":{"type":"string","description":"缩略名"},"type":{"type":"string","description":"类型","default":"category"},"description":{"type":"string","description":"描述"},"order":{"type":"number","description":"排序, 越大越往前"},"parentId":{"type":"number","description":"父级id"}},"required":["name","type"]},"WebInfoResponse":{"type":"object","properties":{"title":{"type":"string","description":"网站标题/签名"},"webName":{"type":"string","description":"网站名"}},"required":["title","webName"]},"AdminAddOptionDto":{"type":"object","properties":{"key":{"type":"string","description":"主键,key"},"value":{"type":"string","description":"值"},"name":{"type":"string","description":"名称"}},"required":["key","value","name"]},"AdminSetWebInfoDto":{"type":"object","properties":{"title":{"type":"string","description":"网站首页标题"},"webName":{"type":"string","description":"网站名称"}},"required":["title","webName"]},"CreateContentDto":{"type":"object","properties":{"title":{"type":"string","description":"标题"},"slug":{"type":"string","description":"缩写"},"text":{"type":"string","description":"文章内容, markdown 格式"},"summary":{"type":"string","description":"摘要"},"order":{"type":"number","description":"权重"},"type":{"type":"string","description":"类型"},"status":{"type":"string","description":"状态"},"password":{"type":"string","description":"密码"},"allowComment":{"type":"boolean","description":"是否允许评论"},"categories":{"description":"分类","type":"array","items":{"type":"array"}},"tags":{"description":"标签","type":"array","items":{"type":"array"}}},"required":["title","slug","text","summary","order","type","status","password","allowComment","categories","tags"]},"WallpaperResponse":{"type":"object","properties":{"url":{"type":"string","description":"url"},"freeze":{"type":"boolean","description":"是否冻结"},"remark":{"type":"string","description":"备注"},"tags":{"description":"标签名","type":"array","items":{"type":"string"}}},"required":["url","freeze","remark","tags"]},"CreateWallpaperDto":{"type":"object","properties":{"url":{"type":"string","description":"url"},"remark":{"type":"string","description":"备注"},"tags":{"description":"标签名","type":"array","items":{"type":"string"}}},"required":["url","remark","tags"]},"CreateCommentDto":{"type":"object","properties":{"author":{"type":"string","description":"评论用户名称","default":"用户昵称"},"authorId":{"type":"number","description":"评论用户 ID"},"email":{"type":"string","description":"评论用户邮箱","default":"[email protected]"},"url":{"type":"string","description":"评论用户网址","default":"https://www.baidu.com"},"ip":{"type":"string","description":"评论 IP","default":"192.168.0.1"},"agent":{"type":"string","description":"评论 UA"},"text":{"type":"string","description":"评论内容","default":"评论内容"}},"required":["author","email","url","ip","agent","text"]},"AdminCommentItemResponse":{"type":"object","properties":{"contentId":{"type":"number","description":"内容ID"},"parentId":{"type":"number","description":"父级评论ID"},"author":{"type":"string","description":"评论用户名称"},"mail":{"type":"string","description":"评论用户邮箱"},"url":{"type":"string","description":"评论用户网址"},"ip":{"type":"string","description":"评论IP"},"agent":{"type":"string","description":"评论 useAgent"},"text":{"type":"string","description":"评论内容"},"status":{"type":"number","description":"评论状态"}},"required":["contentId","parentId","author","mail","ip","agent","text","status"]}}}} ```

是不是访问不到json的原因, 我看公司的swagger 的json 地址是这种、 但是 nest-swagger 的地址是`http://127.0.0.1:3005/api-doc`, json地址是`http://127.0.0.1:3005/api-doc-json` ![image](https://user-images.githubusercontent.com/43983920/226510329-dc182c62-da68-44f4-b94a-522324a2cade.png)

> @abigmiu 我生成的格式也和你的一样,你的问题解决了吗? 没有。 代码里面有ApiTag。 但是json 里面没有apiTag