| 1234567891011121314151617181920212223242526272829303132333435 |
- // Code scaffolded by goctl. Safe to edit.
- // goctl 1.10.2
- package custompage
- import (
- "context"
- pagecache "udeServer/internal/custompage"
- "udeServer/internal/svc"
- "udeServer/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type GetCacheLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- // 获取自定义页面信息
- func NewGetCacheLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCacheLogic {
- return &GetCacheLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *GetCacheLogic) GetCache() (*types.GetCacheResp, error) {
- name, logo := pagecache.GetCache()
- return &types.GetCacheResp{Name: name, Logo: logo}, nil
- }
|