Skip to content

orm: support "with" in custom pb message #4402

@fainc

Description

@fainc

Description

在微服务开发中,message 内联with是写在注释里面的,通过gen pb 生成orm:with标签进行查询,这里只支持 pbentity内联(table能读到),如果使用自定义message进行with的话,会出现找不到数据表的问题,在常规开发中一般使用 g.Meta orm:"table:dining_product, do:true" 自定义关联表,而在微服务中没办法生成 g.meta,期望在orm中新增 类似 orm:table:dining_product with:id=product_id 这种操作满足自定义message的内联with需求。
或者在gen pb时 给pb结构体加上 g.meta ?

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions