Skip to content

将Freesql的dynamicfilterinfo标记为[serialable]  #802

Closed

Description

@835718973

Freesql的DynamicFilterInfo目前未标记未[Serialble],目前我在远程RPC的工程中需要序列化传递dynamicfilterInfo,是否可以将其标记为可序列化或者有其它原因导致不能这么做?

Activity

  1. luoyunchong commented on Jun 18, 2021

    @luoyunchong
    Collaborator

    先用一个类继承这个类,加上[Serializable],看测试可以吗。
    如果测试能解决问题。

    DynamicFilterInfo类加上[Serializable],PR is Welcome!

  2. 2881099 commented on Jun 18, 2021

    @2881099
    Collaborator

    传 string 也可以的,DynamicFilterInfo 和 JSON 可以互转

  3. added
    enhancement
    on Jun 18, 2021
  4. 835718973 commented on Jun 18, 2021

    @835718973
    Author

    image
    请问下拉去源码后编译产生了许多这种错误,但是代码本身并没有提示错误,有什么其它注意事项吗?
    因为有许多其它参数需要一起处理,直接序列化会高效与方便许多,所以如果没有不良影响,希望能够添加此特性

  5. 835718973 commented on Jun 18, 2021

    @835718973
    Author

    image
    请问下拉去源码后编译产生了许多这种错误,但是代码本身并没有提示错误,有什么其它注意事项吗?
    因为有许多其它参数需要一起处理,直接序列化会高效与方便许多,所以如果没有不良影响,希望能够添加此特性

  6. added a commit that references this issue on Jun 18, 2021
  7. added a commit that references this issue on Aug 31, 2021
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions