fix: 补全 ShopProfile 和 Post 响应中缺失的后端字段
ShopProfile 补上 allowMultiShop/allowIndependentOrders/dispatchMode,Post 补上 pinned/linkedOrderId。这些字段在 RPC proto、数据库和写入逻辑中均已存在,但 API 响应类型和映射函数遗漏了它们。同时补回 community.api 中 CreateCommentReq 的 PostId 字段定义。
This commit is contained in:
@@ -36,16 +36,19 @@ func toShopProfile(in *pb.Shops) *types.ShopProfile {
|
||||
VerificationStatus: map[string]string{},
|
||||
CreatedAt: "",
|
||||
},
|
||||
Name: in.Name,
|
||||
Banner: in.Banner,
|
||||
Description: in.Description,
|
||||
Rating: in.Rating,
|
||||
TotalOrders: in.TotalOrders,
|
||||
PlayerCount: in.PlayerCount,
|
||||
CommissionType: in.CommissionType,
|
||||
CommissionValue: in.CommissionValue,
|
||||
Announcements: in.Announcements,
|
||||
TemplateConfig: template,
|
||||
Name: in.Name,
|
||||
Banner: in.Banner,
|
||||
Description: in.Description,
|
||||
Rating: in.Rating,
|
||||
TotalOrders: in.TotalOrders,
|
||||
PlayerCount: in.PlayerCount,
|
||||
CommissionType: in.CommissionType,
|
||||
CommissionValue: in.CommissionValue,
|
||||
AllowMultiShop: in.AllowMultiShop,
|
||||
AllowIndependentOrders: in.AllowIndependentOrders,
|
||||
DispatchMode: in.DispatchMode,
|
||||
Announcements: in.Announcements,
|
||||
TemplateConfig: template,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user