Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creator支持假删除功能 #794

Closed
sunhaolin opened this issue Dec 10, 2018 · 1 comment
Closed

creator支持假删除功能 #794

sunhaolin opened this issue Dec 10, 2018 · 1 comment

Comments

@sunhaolin
Copy link
Collaborator

sunhaolin commented Dec 10, 2018

  • 表添加开关enable_trash(boolean)表示是否开启假删除功能
  • 表添加字段is_deleted(boolean),deleted (Datetime), deleted_by
  • odata查询接口只返回 is_deleted 为空的记录
  • 删除时,设置 is_deleted = true
@marchtian
Copy link
Collaborator

  • 表添加字段is_deleted(boolean),deleted (Datetime), deleted_by
    因为base里已定义了这3个为默认字段,所以对象里无需再定义
  • odata查询接口只返回 is_deleted 为空的记录
    “最近查看”里仍然 有 is_deleted 为true的记录

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

No branches or pull requests

2 participants