add apis
CI / changes (push) Successful in 1m34s
CI / ad (push) Successful in 27s
CI / admin (push) Successful in 17s
CI / aiserver (push) Successful in 26s
CI / analysis (push) Successful in 22s
CI / bff (push) Successful in 21s
CI / chore (push) Successful in 20s
CI / equipment (push) Successful in 19s
CI / express (push) Successful in 19s
CI / factory (push) Successful in 19s
CI / message (push) Successful in 18s
CI / order (push) Successful in 19s
CI / payment (push) Successful in 17s
CI / percutaneous (push) Successful in 17s
CI / product (push) Successful in 19s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / store (push) Successful in 20s
CI / support (push) Successful in 19s
CI / task (push) Successful in 21s
CI / user (push) Successful in 22s
CI / water (push) Successful in 25s
CI / wecom (push) Successful in 21s
CI / ws (push) Successful in 9s
CI / changes (push) Successful in 1m34s
CI / ad (push) Successful in 27s
CI / admin (push) Successful in 17s
CI / aiserver (push) Successful in 26s
CI / analysis (push) Successful in 22s
CI / bff (push) Successful in 21s
CI / chore (push) Successful in 20s
CI / equipment (push) Successful in 19s
CI / express (push) Successful in 19s
CI / factory (push) Successful in 19s
CI / message (push) Successful in 18s
CI / order (push) Successful in 19s
CI / payment (push) Successful in 17s
CI / percutaneous (push) Successful in 17s
CI / product (push) Successful in 19s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / store (push) Successful in 20s
CI / support (push) Successful in 19s
CI / task (push) Successful in 21s
CI / user (push) Successful in 22s
CI / water (push) Successful in 25s
CI / wecom (push) Successful in 21s
CI / ws (push) Successful in 9s
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.10.2
|
||||
// Source: aiserver.proto
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/aiserver/pb"
|
||||
"lone-services/services/aiserver/internal/logic"
|
||||
"lone-services/services/aiserver/internal/svc"
|
||||
)
|
||||
|
||||
type AiserverServer struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
aiserver.UnimplementedAiserverServer
|
||||
}
|
||||
|
||||
func NewAiserverServer(svcCtx *svc.ServiceContext) *AiserverServer {
|
||||
return &AiserverServer{
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
// 添加产品
|
||||
func (s *AiserverServer) ApiAddProduct(ctx context.Context, in *aiserver.ApiAddProductRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiAddProductLogic(ctx, s.svcCtx)
|
||||
return l.ApiAddProduct(in)
|
||||
}
|
||||
|
||||
// 添加使用记录
|
||||
func (s *AiserverServer) ApiAddUse(ctx context.Context, in *aiserver.ApiAddUseRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiAddUseLogic(ctx, s.svcCtx)
|
||||
return l.ApiAddUse(in)
|
||||
}
|
||||
|
||||
// 获取产品信息
|
||||
func (s *AiserverServer) ApiProductItems(ctx context.Context, in *aiserver.ApiProductItemsRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiProductItemsLogic(ctx, s.svcCtx)
|
||||
return l.ApiProductItems(in)
|
||||
}
|
||||
|
||||
// 添加方案
|
||||
func (s *AiserverServer) ApiAddPlanning(ctx context.Context, in *aiserver.ApiEditPlanningRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiAddPlanningLogic(ctx, s.svcCtx)
|
||||
return l.ApiAddPlanning(in)
|
||||
}
|
||||
|
||||
// 编辑方案产品
|
||||
func (s *AiserverServer) ApiEditPlanningProduct(ctx context.Context, in *aiserver.ApiEditPlanningProductRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiEditPlanningProductLogic(ctx, s.svcCtx)
|
||||
return l.ApiEditPlanningProduct(in)
|
||||
}
|
||||
|
||||
// 编辑方案
|
||||
func (s *AiserverServer) ApiEditPlanning(ctx context.Context, in *aiserver.ApiEditPlanningRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiEditPlanningLogic(ctx, s.svcCtx)
|
||||
return l.ApiEditPlanning(in)
|
||||
}
|
||||
|
||||
// 方案列表
|
||||
func (s *AiserverServer) ApiPlanningItems(ctx context.Context, in *aiserver.EmptyRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiPlanningItemsLogic(ctx, s.svcCtx)
|
||||
return l.ApiPlanningItems(in)
|
||||
}
|
||||
|
||||
// 方案删除
|
||||
func (s *AiserverServer) ApiPlanningDelete(ctx context.Context, in *aiserver.ApiPlanningDeleteRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiPlanningDeleteLogic(ctx, s.svcCtx)
|
||||
return l.ApiPlanningDelete(in)
|
||||
}
|
||||
|
||||
// 获取天气
|
||||
func (s *AiserverServer) ApiWeather(ctx context.Context, in *aiserver.EmptyRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiWeatherLogic(ctx, s.svcCtx)
|
||||
return l.ApiWeather(in)
|
||||
}
|
||||
|
||||
// 获取使用记录
|
||||
func (s *AiserverServer) ApiUsedItems(ctx context.Context, in *aiserver.ApiUsedItemsRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiUsedItemsLogic(ctx, s.svcCtx)
|
||||
return l.ApiUsedItems(in)
|
||||
}
|
||||
|
||||
// 获取系统时间
|
||||
func (s *AiserverServer) ApiSystemTime(ctx context.Context, in *aiserver.EmptyRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiSystemTimeLogic(ctx, s.svcCtx)
|
||||
return l.ApiSystemTime(in)
|
||||
}
|
||||
|
||||
// 设置系统参数
|
||||
func (s *AiserverServer) ApiSystemSet(ctx context.Context, in *aiserver.ApiSystemSetRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiSystemSetLogic(ctx, s.svcCtx)
|
||||
return l.ApiSystemSet(in)
|
||||
}
|
||||
|
||||
// 获取系统设置
|
||||
func (s *AiserverServer) ApiGetSystem(ctx context.Context, in *aiserver.EmptyRequest) (*aiserver.Response, error) {
|
||||
l := logic.NewApiGetSystemLogic(ctx, s.svcCtx)
|
||||
return l.ApiGetSystem(in)
|
||||
}
|
||||
Reference in New Issue
Block a user