// Code generated by protoc-gen-slc. DO NOT EDIT.
package server

import (
	"context"
	"bsm/full/module/base/cms/internal/logic/pages"
	pb "bsm/full/module/base/cms/pb"
)

type PagesServer struct {
	pb.UnimplementedPagesServer
}

func NewPagesServer() *PagesServer {
	return &PagesServer{}
}

// 单页列表
func (s *PagesServer) Fetch(ctx context.Context, in *pb.PagesListRequest) (*pb.PagesListReply, error) {
	return pages.Fetch(ctx, in)
}

// 获取单页详情 By Identity
func (s *PagesServer) GetByIdentity(ctx context.Context, in *pb.GetPagesRequest) (*pb.PagesItem, error) {
	return pages.GetByIdentity(ctx, in)
}

// 获取单页详情 By Key
func (s *PagesServer) GetByKey(ctx context.Context, in *pb.GetPagesByKeyRequest) (*pb.PagesItem, error) {
	return pages.GetByKey(ctx, in)
}

// 发布单页
func (s *PagesServer) Create(ctx context.Context, in *pb.PagesItem) (*pb.StatusReply, error) {
	return pages.Create(ctx, in)
}

// 修改单页
func (s *PagesServer) Modify(ctx context.Context, in *pb.PagesItem) (*pb.StatusReply, error) {
	return pages.Modify(ctx, in)
}

// 删除单页
func (s *PagesServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
	return pages.Delete(ctx, in)
}
