fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package dashboard
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bj_power_mes/internal/svc"
|
||||
"bj_power_mes/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type DashboardOverviewLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
}
|
||||
|
||||
func NewDashboardOverviewLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DashboardOverviewLogic {
|
||||
return &DashboardOverviewLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *DashboardOverviewLogic) DashboardOverview() (*types.DashboardOverviewReply, error) {
|
||||
return &types.DashboardOverviewReply{
|
||||
Buffer: types.BufferSummary{
|
||||
Total: 8,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user