feat: 清理openspec
This commit is contained in:
@@ -152,10 +152,24 @@ func (svc *CoreService) CreateServerInstanceWorkflow(create domain.ServerLifecyc
|
||||
}), nil
|
||||
}
|
||||
|
||||
func dedicatedRunEndpointID(serverInstanceID string) string {
|
||||
func generatedRunEndpointID(serverInstanceID string) string {
|
||||
return "server-run-" + serverInstanceID
|
||||
}
|
||||
|
||||
// dedicatedRunEndpointID remains a compatibility helper for legacy fixtures.
|
||||
// Production flow uses generatedRunEndpointID only when building a package and
|
||||
// attaches the active endpoint from the first authenticated Run heartbeat.
|
||||
func dedicatedRunEndpointID(serverInstanceID string) string {
|
||||
return generatedRunEndpointID(serverInstanceID)
|
||||
}
|
||||
|
||||
func runEndpointIDForDistribution(instance domain.ServerInstance) string {
|
||||
if endpointID := strings.TrimSpace(instance.RunEndpointID); endpointID != "" {
|
||||
return endpointID
|
||||
}
|
||||
return generatedRunEndpointID(instance.ID)
|
||||
}
|
||||
|
||||
func (svc *CoreService) CreateServerInstanceWorkflowForSession(sessionID string, create domain.ServerLifecycleCreate) (domain.ServerLifecycleResult, error) {
|
||||
user, err := svc.GetCurrentUser(sessionID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user