优化表结构,重构模型,重新实现基于白银网关的提取节点流程

This commit is contained in:
2025-11-24 18:44:06 +08:00
parent 9a574f55cb
commit cb2a963a37
142 changed files with 6528 additions and 5808 deletions

View File

@@ -24,7 +24,7 @@ import (
// region Identify
type IdentifyReq struct {
Type int32 `json:"type" validate:"required,oneof=1 2"`
Type int `json:"type" validate:"required,oneof=1 2"`
Name string `json:"name" validate:"required"`
IdenNo string `json:"iden_no" validate:"required"`
}
@@ -173,7 +173,7 @@ func IdentifyCallback(c *fiber.Ctx) error {
q.User.Name,
).
Updates(m.User{
IDType: info.Type,
IDType: m.UserIDType(info.Type),
IDNo: &info.IdNo,
IDToken: &info.Token,
Name: &info.Name,
@@ -202,7 +202,7 @@ func idenKey(id string) string {
type idenInfo struct {
Uid int32 `json:"uid"`
Type int32 `json:"type"`
Type int `json:"type"`
Name string `json:"name"`
IdNo string `json:"id_no"`
Token string `json:"token"`