Documentation
¶
Index ¶
- func BuildFileDataBytes(file *multipart.FileHeader) ([]byte, error)
- func BuildSpu(spu *modelKitex.Spu) *model.Spu
- func BuildSpuImage(img *modelKitex.SpuImage) *model.SpuImage
- func BuildSpuImages(imgs []*modelKitex.SpuImage) []*model.SpuImage
- func BuildSpus(spus []*modelKitex.Spu) []*model.Spu
- func BuildUserInfo(u *rpcModel.UserInfo) *model.UserInfo
- func RespData(c *app.RequestContext, data any)
- func RespError(c *app.RequestContext, err error)
- func RespList(c *app.RequestContext, items any)
- func RespSuccess(c *app.RequestContext)
- type Base
- type RespWithData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFileDataBytes ¶
func BuildFileDataBytes(file *multipart.FileHeader) ([]byte, error)
func BuildSpuImage ¶
func BuildSpuImage(img *modelKitex.SpuImage) *model.SpuImage
func BuildSpuImages ¶
func BuildSpuImages(imgs []*modelKitex.SpuImage) []*model.SpuImage
func BuildUserInfo ¶
BuildUserInfo 将 RPC 交流实体转换成 http 返回的实体
func RespData ¶
func RespData(c *app.RequestContext, data any)
func RespError ¶
func RespError(c *app.RequestContext, err error)
func RespList ¶
func RespList(c *app.RequestContext, items any)
func RespSuccess ¶
func RespSuccess(c *app.RequestContext)
Types ¶
type RespWithData ¶
Click to show internal directories.
Click to hide internal directories.