daShangDao_psiServer/models/response/shop.go
2026-06-15 13:47:39 +08:00

31 lines
851 B
Go

package response
import "psi/models"
type ShopResponse struct {
ID int64 `json:"id"`
MallID int64 `json:"mall_id"`
ShopType int8 `json:"shop_type"`
ShopName string `json:"shop_name"`
ShopAliasName string `json:"shop_alias_name"`
CreateBy int64 `json:"create_by"`
CreateTime int64 `json:"create_time"`
UpdateBy int64 `json:"update_by"`
UpdateTime int64 `json:"update_time"`
Status int8 `json:"status"`
}
func ConvertShopToResponse(shop models.Shop) ShopResponse {
return ShopResponse{
ID: shop.ID,
MallID: shop.MallID,
ShopType: shop.ShopType,
ShopAliasName: shop.ShopAliasName,
CreateBy: shop.CreateBy,
CreateTime: shop.CreateTime,
UpdateBy: shop.UpdateBy,
UpdateTime: shop.UpdateTime,
Status: shop.Status,
}
}