Skip to content

如何逻辑删除 #301

Closed
Closed

Description

@bullhe4d

在Roadmap里看到支持逻辑删除?但是并没看到相关代码?想知道4.7.2版本下支持逻辑删除么?应该怎么做?

Activity

  1. TommyLemon commented on Aug 13, 2021

    @TommyLemon
    Member

    用 /put,修改业务上已删除的标识字段,例如把 is_deleted 改为 1
    https://github.com/Tencent/APIJSON/blob/master/Document.md#3

  2. bullhe4d commented on Aug 13, 2021

    @bullhe4d
    Author

    谢谢回复,在需要查询未删除数据的时候应该把判断( is_deleted != 1)加在哪里呢?

  3. TommyLemon commented on Aug 16, 2021

    @TommyLemon
    Member

    直接在请求 JSON 表对象里加,或者在 DemoObjectParser 重写 newSQLConfig,RequestMethod.isQueryMethod(method, true) 时固定把 is_deleted, 0 加进去

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