Skip to content

如何实现head方法? #33

Closed

Description

@390620652

HEAD:
普通获取数量,
可用浏览器调试

base_url/head/

这部分功能没有

Activity

  1. TommyLemon commented on Mar 6, 2024

    @TommyLemon
    Contributor

    POST /head

    {
      "User": {
         "@column": "name"
      }
    }

    可以用 GET 替代

    POST /get

    {
      "User": {
         "@column": "count(name)" // 没有传有效 @column 则直接默认 count(*)
      }
    }

    https://github.com/Tencent/APIJSON/blob/master/Document.md#3.1

  2. 390620652 commented on Mar 6, 2024

    @390620652
    ContributorAuthor

    { "User": { "@column": "count(name)" // 没有传有效 @column 则直接默认 count(*) } }
    这样写好像没有用,会报错,说没有count(name)、count(1)或count(*)这列

  3. TommyLemon commented on Mar 6, 2024

    @TommyLemon
    Contributor

    那应该是 .NET 版没有支持 SQL 函数导致的,可以改下对应源码来支持下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions