b6cc44140f
CI / changes (push) Successful in 39s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
160 lines
5.3 KiB
Go
160 lines
5.3 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: store.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/store/pb"
|
|
"lone-services/services/store/internal/logic"
|
|
"lone-services/services/store/internal/svc"
|
|
)
|
|
|
|
type StoreServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
store.UnimplementedStoreServer
|
|
}
|
|
|
|
func NewStoreServer(svcCtx *svc.ServiceContext) *StoreServer {
|
|
return &StoreServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *StoreServer) Status(ctx context.Context, in *store.StatusRequest) (*store.Response, error) {
|
|
l := logic.NewStatusLogic(ctx, s.svcCtx)
|
|
return l.Status(in)
|
|
}
|
|
|
|
func (s *StoreServer) Edit(ctx context.Context, in *store.EditRequest) (*store.Response, error) {
|
|
l := logic.NewEditLogic(ctx, s.svcCtx)
|
|
return l.Edit(in)
|
|
}
|
|
|
|
func (s *StoreServer) Create(ctx context.Context, in *store.CreateRequest) (*store.Response, error) {
|
|
l := logic.NewCreateLogic(ctx, s.svcCtx)
|
|
return l.Create(in)
|
|
}
|
|
|
|
func (s *StoreServer) ToSale(ctx context.Context, in *store.ToSaleRequest) (*store.Response, error) {
|
|
l := logic.NewToSaleLogic(ctx, s.svcCtx)
|
|
return l.ToSale(in)
|
|
}
|
|
|
|
func (s *StoreServer) Info(ctx context.Context, in *store.IdRequest) (*store.Response, error) {
|
|
l := logic.NewInfoLogic(ctx, s.svcCtx)
|
|
return l.Info(in)
|
|
}
|
|
|
|
func (s *StoreServer) Content(ctx context.Context, in *store.ContentRequest) (*store.Response, error) {
|
|
l := logic.NewContentLogic(ctx, s.svcCtx)
|
|
return l.Content(in)
|
|
}
|
|
|
|
func (s *StoreServer) Names(ctx context.Context, in *store.EmptyRequest) (*store.Response, error) {
|
|
l := logic.NewNamesLogic(ctx, s.svcCtx)
|
|
return l.Names(in)
|
|
}
|
|
|
|
func (s *StoreServer) Items(ctx context.Context, in *store.ItemsRequest) (*store.Response, error) {
|
|
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
|
return l.Items(in)
|
|
}
|
|
|
|
func (s *StoreServer) VerifyItems(ctx context.Context, in *store.VerifyItemsRequest) (*store.Response, error) {
|
|
l := logic.NewVerifyItemsLogic(ctx, s.svcCtx)
|
|
return l.VerifyItems(in)
|
|
}
|
|
|
|
func (s *StoreServer) VerifyStatus(ctx context.Context, in *store.StatusRequest) (*store.Response, error) {
|
|
l := logic.NewVerifyStatusLogic(ctx, s.svcCtx)
|
|
return l.VerifyStatus(in)
|
|
}
|
|
|
|
func (s *StoreServer) VerifyEdit(ctx context.Context, in *store.EditRequest) (*store.Response, error) {
|
|
l := logic.NewVerifyEditLogic(ctx, s.svcCtx)
|
|
return l.VerifyEdit(in)
|
|
}
|
|
|
|
func (s *StoreServer) ApplyEdit(ctx context.Context, in *store.ApplyEditRequest) (*store.Response, error) {
|
|
l := logic.NewApplyEditLogic(ctx, s.svcCtx)
|
|
return l.ApplyEdit(in)
|
|
}
|
|
|
|
func (s *StoreServer) ApplyVerify(ctx context.Context, in *store.ItemsRequest) (*store.Response, error) {
|
|
l := logic.NewApplyVerifyLogic(ctx, s.svcCtx)
|
|
return l.ApplyVerify(in)
|
|
}
|
|
|
|
func (s *StoreServer) ApplyVerifyStatus(ctx context.Context, in *store.StatusRequest) (*store.Response, error) {
|
|
l := logic.NewApplyVerifyStatusLogic(ctx, s.svcCtx)
|
|
return l.ApplyVerifyStatus(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositDone(ctx context.Context, in *store.IdRequest) (*store.Response, error) {
|
|
l := logic.NewDepositDoneLogic(ctx, s.svcCtx)
|
|
return l.DepositDone(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositIgnore(ctx context.Context, in *store.DepositIgnoreRequest) (*store.Response, error) {
|
|
l := logic.NewDepositIgnoreLogic(ctx, s.svcCtx)
|
|
return l.DepositIgnore(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositVerify(ctx context.Context, in *store.DepositVerifyRequest) (*store.Response, error) {
|
|
l := logic.NewDepositVerifyLogic(ctx, s.svcCtx)
|
|
return l.DepositVerify(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositDown(ctx context.Context, in *store.DepositItemsRequest) (*store.ExcelExportResponse, error) {
|
|
l := logic.NewDepositDownLogic(ctx, s.svcCtx)
|
|
return l.DepositDown(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositItems(ctx context.Context, in *store.DepositItemsRequest) (*store.Response, error) {
|
|
l := logic.NewDepositItemsLogic(ctx, s.svcCtx)
|
|
return l.DepositItems(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositIgnoreItems(ctx context.Context, in *store.DepositVerifyRequest) (*store.Response, error) {
|
|
l := logic.NewDepositIgnoreItemsLogic(ctx, s.svcCtx)
|
|
return l.DepositIgnoreItems(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositRecover(ctx context.Context, in *store.IdRequest) (*store.Response, error) {
|
|
l := logic.NewDepositRecoverLogic(ctx, s.svcCtx)
|
|
return l.DepositRecover(in)
|
|
}
|
|
|
|
func (s *StoreServer) DepositBackfill(ctx context.Context, in *store.DepositBackfillRequest) (*store.Response, error) {
|
|
l := logic.NewDepositBackfillLogic(ctx, s.svcCtx)
|
|
return l.DepositBackfill(in)
|
|
}
|
|
|
|
func (s *StoreServer) WebDepositCreate(ctx context.Context, in *store.WebDepositCreateRequest) (*store.Response, error) {
|
|
l := logic.NewWebDepositCreateLogic(ctx, s.svcCtx)
|
|
return l.WebDepositCreate(in)
|
|
}
|
|
|
|
func (s *StoreServer) WebDepositItems(ctx context.Context, in *store.WebDepositItemsRequest) (*store.Response, error) {
|
|
l := logic.NewWebDepositItemsLogic(ctx, s.svcCtx)
|
|
return l.WebDepositItems(in)
|
|
}
|
|
|
|
func (s *StoreServer) SetDef(ctx context.Context, in *store.EmptyRequest) (*store.Response, error) {
|
|
l := logic.NewSetDefLogic(ctx, s.svcCtx)
|
|
return l.SetDef(in)
|
|
}
|
|
|
|
func (s *StoreServer) GetInfoById(ctx context.Context, in *store.IdRequest) (*store.InfoResponse, error) {
|
|
l := logic.NewGetInfoByIdLogic(ctx, s.svcCtx)
|
|
return l.GetInfoById(in)
|
|
}
|
|
|
|
func (s *StoreServer) GetInfoByIds(ctx context.Context, in *store.IdsRequest) (*store.ItemsResponse, error) {
|
|
l := logic.NewGetInfoByIdsLogic(ctx, s.svcCtx)
|
|
return l.GetInfoByIds(in)
|
|
}
|