Skip to content

ProductList 的请求参数为什么会有ProductId #31

@yesgs

Description

@yesgs

go-zero微服务实战系列(五、缓存代码怎么写)里面的 ProductListRequest 结构为什么会有 ProductId

message ProductListRequest {
  int32 category_id = 1;
  int64 cursor = 2;
  int32 ps = 3;
  int64 product_id = 4;
}

请问这个 ProductId 的作用是什么?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions