forked from JointCloud/pcm-ac
updated logic imports
This commit is contained in:
parent
6f095a7586
commit
465b5009e8
13
hpcac.go
13
hpcac.go
|
@ -4,17 +4,16 @@ import (
|
|||
"context"
|
||||
"flag"
|
||||
"fmt"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/config"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/cron"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/server"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/client/participantservice"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/cron"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/config"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/server"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/conf"
|
||||
"github.com/zeromicro/go-zero/core/service"
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
|
|
|
@ -5,10 +5,8 @@ package hpcacclient
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package common
|
|||
import (
|
||||
"flag"
|
||||
"github.com/zeromicro/go-zero/core/conf"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/config"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/config"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,15 +3,15 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type DeleteJobLogic struct {
|
||||
|
|
|
@ -3,13 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
)
|
||||
|
||||
type DeleteTaskAiLogic struct {
|
||||
|
|
|
@ -2,10 +2,10 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"strconv"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -3,11 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type GetACClusterIdLogic struct {
|
||||
|
|
|
@ -4,13 +4,12 @@ import (
|
|||
"context"
|
||||
"encoding/json"
|
||||
"github.com/go-resty/resty/v2"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,14 +2,12 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type GetComputingPowerLogic struct {
|
||||
|
|
|
@ -3,14 +3,12 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type GetFileListLogic struct {
|
||||
|
|
|
@ -2,15 +2,13 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type GetGeneralInfoLogic struct {
|
||||
|
|
|
@ -2,11 +2,9 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type GetImageAiByIdLogic struct {
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -3,10 +3,10 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type GetJobDetailLogic struct {
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type HistoryJobDetailLogic struct {
|
||||
|
|
|
@ -2,12 +2,11 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type JobsLogic struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"context"
|
||||
"github.com/bitly/go-simplejson"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/bitly/go-simplejson"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
|
|
|
@ -3,14 +3,14 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type ListJobManagerLogic struct {
|
||||
|
|
|
@ -2,12 +2,11 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type ParaStorQuotaLogic struct {
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type QueryQueueDetailsLogic struct {
|
||||
|
|
|
@ -2,14 +2,12 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type QueryUserQuotasLimitLogic struct {
|
||||
|
|
|
@ -2,12 +2,11 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type QueueJobsLogic struct {
|
||||
|
|
|
@ -3,11 +3,10 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type SelectQueueByUserLogic struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,12 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type WallTimeLogic struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package cron
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/client/participantservice"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
)
|
||||
|
||||
func ReportHeartbeat(participantRpc participantservice.ParticipantService) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cron
|
||||
|
||||
import (
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
func AddCronGroup(svc *svc.ServiceContext) {
|
||||
|
|
|
@ -3,12 +3,12 @@ package cron
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcacclient"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/logic"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcacclient"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/logic"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
func SyncTask(svc *svc.ServiceContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/pkg/utils/httputils"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,10 +5,9 @@ package server
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/logic"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/logic"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type HpcACServer struct {
|
||||
|
|
|
@ -3,9 +3,9 @@ package svc
|
|||
import (
|
||||
"github.com/robfig/cron/v3"
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"gitlink.org.cn/JointCloud/pcm-ac/internal/config"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/client/participantservice"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/client/pcmcore"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/config"
|
||||
)
|
||||
|
||||
type ServiceContext struct {
|
||||
|
|
Loading…
Reference in New Issue