p端id返回改成string

This commit is contained in:
zhangwei 2023-12-08 19:17:29 +08:00
parent 9c92b5c259
commit f77e73db57
3 changed files with 4 additions and 3 deletions

View File

@ -624,7 +624,7 @@ type (
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
ParticipantStatus string `json:"participantStatus"`
ParticipantId int64 `json:"participantId"`
ParticipantId string `json:"participantId"`
ParticipantName string `json:"participantName"`
Storage string `json:"storage"`
CreateTime string `json:"createTime"`

View File

@ -4,6 +4,7 @@ import (
"context"
"gorm.io/datatypes"
"gorm.io/gorm"
"strconv"
"time"
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
@ -61,7 +62,7 @@ func (l *AppListLogic) AppList(req *types.AppListReq) (resp *types.AppListResp,
StartTime: task.StartTime,
EndTime: task.EndTime,
CreateTime: task.CommitTime.Format("2006-01-02 15:04:05"),
ParticipantId: task.PId,
ParticipantId: strconv.FormatInt(task.PId, 10),
ParticipantName: task.PName,
Replicas: replicas,
})

View File

@ -589,7 +589,7 @@ type App struct {
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
ParticipantStatus string `json:"participantStatus"`
ParticipantId int64 `json:"participantId"`
ParticipantId string `json:"participantId"`
ParticipantName string `json:"participantName"`
Storage string `json:"storage"`
CreateTime string `json:"createTime"`