Documentation ¶
Index ¶
- func Paginate(page, pageSize int) func(db *gorm.DB) *gorm.DB
- func UserModelToResp(u *model.User) *user.UserModel
- func UserModelsToRsp(us []model.User) []*user.UserModel
- type GoodsServer
- func (GoodsServer) CreateGoods(context.Context, *goods.CreateGoodsRequest) (*goods.GoodsInfoResponse, error)
- func (GoodsServer) DeleteGoods(context.Context, *goods.DeleteGoodsRequest) (*goods.Empty, error)
- func (GoodsServer) GetBatchGoodsList(context.Context, *goods.GetBatchGoodsListRequest) (*goods.GoodsListResponse, error)
- func (GoodsServer) GetGoodsDetail(context.Context, *goods.GetGoodsDetailRequest) (*goods.GoodsInfoResponse, error)
- func (GoodsServer) GetGoodsFilterList(context.Context, *goods.GetGoodsFilterListRequest) (*goods.GoodsListResponse, error)
- func (GoodsServer) Ping(context.Context, *goods.Empty) (*goods.Empty, error)
- func (GoodsServer) UpdateGoods(context.Context, *goods.CreateGoodsRequest) (*goods.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoodsServer ¶
type GoodsServer struct {
goods.UnimplementedGoodsServer
}
func (GoodsServer) CreateGoods ¶
func (GoodsServer) CreateGoods(context.Context, *goods.CreateGoodsRequest) (*goods.GoodsInfoResponse, error)
func (GoodsServer) DeleteGoods ¶
func (GoodsServer) DeleteGoods(context.Context, *goods.DeleteGoodsRequest) (*goods.Empty, error)
func (GoodsServer) GetBatchGoodsList ¶
func (GoodsServer) GetBatchGoodsList(context.Context, *goods.GetBatchGoodsListRequest) (*goods.GoodsListResponse, error)
func (GoodsServer) GetGoodsDetail ¶
func (GoodsServer) GetGoodsDetail(context.Context, *goods.GetGoodsDetailRequest) (*goods.GoodsInfoResponse, error)
func (GoodsServer) GetGoodsFilterList ¶
func (GoodsServer) GetGoodsFilterList(context.Context, *goods.GetGoodsFilterListRequest) (*goods.GoodsListResponse, error)
func (GoodsServer) UpdateGoods ¶
func (GoodsServer) UpdateGoods(context.Context, *goods.CreateGoodsRequest) (*goods.Empty, error)
Click to show internal directories.
Click to hide internal directories.