实现门店桌面设置相关配置

This commit is contained in:
2025-06-19 18:01:47 +08:00
parent fcdc44b94e
commit a25068154f
35 changed files with 372 additions and 335 deletions

View File

@ -0,0 +1,19 @@
package desktop
import (
"context"
"server/internal/service"
"server/api/desktop/v1"
)
func (c *ControllerV1) Get(ctx context.Context, req *v1.GetReq) (res *v1.GetRes, err error) {
out, err := service.StoreDesktopSetting().Get(ctx, req.StoreId)
if err != nil {
return nil, err
}
return &v1.GetRes{
RightComponentVisible: out.RightComponentVisible,
TopComponentVisible: out.TopComponentVisible,
}, nil
}