fix(*): 质量检查与版本发布 - 修复格式门禁和创作灵感兼容导出并发布 v1.6.2
This commit is contained in:
@@ -2,12 +2,12 @@ package app
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"yingce/backend/internal/model"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestCanvasHistoryProtectsMediaAndDeletionWorker(t *testing.T) {
|
||||
|
||||
@@ -2,9 +2,9 @@ package app
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type ChannelOrderItem struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"yingce/backend/internal/model"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestVisualChannelOrderAtomicSnapshotAndPermissions(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"yingce/backend/internal/canvas/contract"
|
||||
"strings"
|
||||
"yingce/backend/internal/canvas/contract"
|
||||
)
|
||||
|
||||
// cloudAgentGenerationSpec 将 Agent 参数和已解析素材转换为画布生成合同。
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"yingce/backend/internal/auth"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/sms"
|
||||
"math/big"
|
||||
)
|
||||
|
||||
type SMSChannelRequest = sms.ChannelRequest
|
||||
|
||||
@@ -2,9 +2,9 @@ package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
"yingce/backend/internal/platform"
|
||||
"testing"
|
||||
"time"
|
||||
"yingce/backend/internal/platform"
|
||||
)
|
||||
|
||||
func TestRequestRetryAfterMatchesWindow(t *testing.T) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/tools"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"yingce/backend/internal/model"
|
||||
"strings"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestToolPreviewOwnershipAndResourceDeletionGuard(t *testing.T) {
|
||||
|
||||
@@ -5,13 +5,13 @@ import (
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/repository"
|
||||
"log"
|
||||
"net/mail"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/repository"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"log"
|
||||
"math/big"
|
||||
"mime"
|
||||
@@ -19,6 +18,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/outbound"
|
||||
|
||||
@@ -4,12 +4,12 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"math"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
@@ -7,13 +7,13 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/outbound"
|
||||
|
||||
@@ -3,10 +3,10 @@ package auth
|
||||
import (
|
||||
"crypto/hmac"
|
||||
"errors"
|
||||
"yingce/backend/internal/kernel"
|
||||
"log"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
|
||||
@@ -3,10 +3,10 @@ package auth
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"yingce/backend/internal/kernel"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
|
||||
@@ -4,12 +4,12 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/outbound"
|
||||
)
|
||||
|
||||
@@ -4,12 +4,12 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"math"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
@@ -9,12 +9,12 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"gorm.io/gorm"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"yingce/backend/internal/sms"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
type VerificationRequest struct {
|
||||
|
||||
@@ -2,11 +2,11 @@ package canvas
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"yingce/backend/internal/assets"
|
||||
"yingce/backend/internal/kernel"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"yingce/backend/internal/assets"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"errors"
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
"yingce/backend/internal/repository"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
"yingce/backend/internal/repository"
|
||||
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/model"
|
||||
|
||||
@@ -8,11 +8,11 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/assets"
|
||||
"yingce/backend/internal/kernel"
|
||||
"io"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/assets"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@ package canvas
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"yingce/backend/internal/assets"
|
||||
"strings"
|
||||
"testing"
|
||||
"yingce/backend/internal/assets"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
@@ -3,9 +3,9 @@ package canvas
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"yingce/backend/internal/kernel"
|
||||
"math"
|
||||
"strings"
|
||||
"yingce/backend/internal/kernel"
|
||||
)
|
||||
|
||||
var userAssetKinds = map[string]struct{}{
|
||||
|
||||
@@ -3,11 +3,11 @@ package canvas
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"yingce/backend/internal/kernel"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
|
||||
@@ -2,9 +2,9 @@ package canvas
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"yingce/backend/internal/kernel"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
)
|
||||
|
||||
func (s *Service) UserAssetsByIDs(userID string, ids []string) ([]json.RawMessage, error) {
|
||||
|
||||
@@ -3,8 +3,8 @@ package database
|
||||
import (
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
"yingce/backend/internal/model"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestCreationMigrationKeepsLegacyTasksNullableAndEnforcesSubmissionUnique(t *testing.T) {
|
||||
|
||||
@@ -3,9 +3,9 @@ package database
|
||||
import (
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
"yingce/backend/internal/model"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestSkillCurationRootsMigration(t *testing.T) {
|
||||
|
||||
@@ -3,9 +3,9 @@ package database
|
||||
import (
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
"yingce/backend/internal/model"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestSkillCurationUpgradeAndRollback(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"yingce/backend/internal/model"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestTaskMediaRecoveryMigrationPreservesHistoricalTasks(t *testing.T) {
|
||||
|
||||
@@ -2,8 +2,8 @@ package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"yingce/backend/internal/service"
|
||||
"net/http"
|
||||
"yingce/backend/internal/service"
|
||||
)
|
||||
|
||||
func registerChannelOrderRoutes(r *gin.RouterGroup, svc *service.Service) {
|
||||
|
||||
@@ -2,8 +2,8 @@ package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"yingce/backend/internal/service"
|
||||
"net/http"
|
||||
"yingce/backend/internal/service"
|
||||
)
|
||||
|
||||
func RegisterCreationRoutes(r *gin.RouterGroup, svc *service.Service) {
|
||||
|
||||
@@ -2,10 +2,10 @@ package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/service"
|
||||
"net/http"
|
||||
"time"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/service"
|
||||
)
|
||||
|
||||
func registerNotificationRoutes(r *gin.RouterGroup, svc *service.Service) {
|
||||
|
||||
@@ -3,9 +3,9 @@ package handler
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/gin-gonic/gin"
|
||||
"yingce/backend/internal/service"
|
||||
"io"
|
||||
"net/http"
|
||||
"yingce/backend/internal/service"
|
||||
)
|
||||
|
||||
func registerSkillCurationRoutes(r *gin.RouterGroup, svc *service.Service) {
|
||||
|
||||
@@ -4,15 +4,15 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
"yingce/backend/internal/auth"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"yingce/backend/internal/service"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
"yingce/backend/internal/auth"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"yingce/backend/internal/service"
|
||||
)
|
||||
|
||||
func TestSkillCurationHTTP(t *testing.T) {
|
||||
|
||||
@@ -2,15 +2,15 @@ package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
"time"
|
||||
"yingce/backend/internal/auth"
|
||||
"yingce/backend/internal/database"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"yingce/backend/internal/service"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestTaskMediaRecoveryHTTPAuthenticationAndOwnership(t *testing.T) {
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"io"
|
||||
"mime"
|
||||
"mime/multipart"
|
||||
@@ -12,6 +11,7 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
"yingce/backend/internal/kernel"
|
||||
)
|
||||
|
||||
const maxAPICallPayloadBytes = 128 << 10
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"log"
|
||||
"math/rand/v2"
|
||||
"os"
|
||||
@@ -12,6 +11,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"github.com/redis/go-redis/v9"
|
||||
)
|
||||
|
||||
@@ -3,9 +3,9 @@ package platform
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"yingce/backend/internal/kernel"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ package prompts
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"yingce/backend/internal/kernel"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"errors"
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
"yingce/backend/internal/model"
|
||||
"slices"
|
||||
"time"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
var ErrChannelOrderChanged = errors.New("列表已发生变化,请重新打开排序后再保存")
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"errors"
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
"yingce/backend/internal/model"
|
||||
"time"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
var ErrNotificationLimit = errors.New("通知发送次数已达上限,请稍后再试")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package skills
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
type SkillCuration = repository.SkillCuration
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package skills
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
func activeCurationRoot(state *SkillCuration, id string) bool {
|
||||
|
||||
@@ -2,10 +2,10 @@ package skills
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"reflect"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
)
|
||||
|
||||
func TestSkillCurationRootManagementAvailable(t *testing.T) {
|
||||
|
||||
@@ -3,9 +3,9 @@ package skills
|
||||
import (
|
||||
"encoding/json"
|
||||
"gorm.io/gorm"
|
||||
"yingce/backend/internal/model"
|
||||
"reflect"
|
||||
"testing"
|
||||
"yingce/backend/internal/model"
|
||||
)
|
||||
|
||||
func TestSkillCurationManagementAvailable(t *testing.T) {
|
||||
|
||||
@@ -13,8 +13,6 @@ import (
|
||||
qiniuAuth "github.com/qiniu/go-sdk/v7/auth"
|
||||
qiniuStorage "github.com/qiniu/go-sdk/v7/storage"
|
||||
cos "github.com/tencentyun/cos-go-sdk-v5"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/outbound"
|
||||
"io"
|
||||
"mime"
|
||||
"net"
|
||||
@@ -24,6 +22,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/outbound"
|
||||
)
|
||||
|
||||
func transferTimeout(setting Settings) time.Duration {
|
||||
|
||||
@@ -5,13 +5,13 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/outbound"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
"yingce/backend/internal/kernel"
|
||||
"yingce/backend/internal/outbound"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package tools_test
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
"yingce/backend/internal/database"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/repository"
|
||||
"yingce/backend/internal/tools"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestToolsVisibilityTokensSeedAndReferences(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user