siteserver / cms

SS CMS 基于 .NET Core,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
https://sscms.com
GNU Affero General Public License v3.0
3.7k stars 1.22k forks source link

REST API中的获取内容列表 API如何将自定义字段做为wheres条件 #3558

Open fsea opened 1 year ago

fsea commented 1 year ago

内容实体contents可以作为wheres条件,自定义字段该怎么办呢?如果不能筛选,自定义字段只能调用显示就缺少灵活性了

starlying commented 1 year ago

自定义字段已JSON格式存储在ExtendValues字段内,可以试下搜索ExtendValues

fsea commented 1 year ago

建议优化为能根据具体自定义字段搜索,否则自定义字段较多时,搜索ExtendValues效率较低