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

feat: 💥 change tag api to batch #59

Merged
merged 6 commits into from
Feb 23, 2024
Merged

feat: 💥 change tag api to batch #59

merged 6 commits into from
Feb 23, 2024

Conversation

binsee
Copy link
Member

@binsee binsee commented Feb 23, 2024

Checklist

  • Commit Messages follow the Conventional Commits pattern
    • A feature commit message is prefixed "feat:"
    • A bugfix commit message is prefixed "fix:"
  • Tests for the changes have been added
  • CI has been passed. (GitHub actions all turns green)
  • CLA has been signed

References to other Issues or PRs

Have you read the Contributing Guidelines?

Brief description of what is fixed or changed

Other comments

string tag_name = 1;
string tag_group_id = 2;
string tag_group_id = 2;
repeated string tag_name_list = 3;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个tag_name_list应该会被自动再加一次list,可以考虑去掉,下面两个同理。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

啊?编译框架自动搞这个?我试试

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确实如此,现有定义中还有一些名称是有点小问题的
xxIds => xxIdsList
image
image

message TagTagAddRequest {
string tag_name = 1;
string tag_group_id = 2;
string tag_group_id = 2;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥把1跳过了,是改叉劈了么,虽然不影响。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为改成了数组,虽然 proto 解析不会出问题,但生成的 ts 会与以前不兼容。

@binsee binsee merged commit b3d2b27 into main Feb 23, 2024
4 checks passed
@binsee binsee deleted the feat/batch-op-tag branch February 23, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants