Explorar el Código

update

master
dengbiao hace 3 meses
padre
commit
2daec12e1f
Se han modificado 3 ficheros con 7 adiciones y 3 borrados
  1. +4
    -0
      app/hdl/hdl_demo.go
  2. +2
    -2
      app/svc/svc_master.go
  3. +1
    -1
      go.mod

+ 4
- 0
app/hdl/hdl_demo.go Ver fichero

@@ -3,10 +3,14 @@ package hdl
import (
"applet/app/e"
"applet/app/svc"
"applet/app/utils"
"fmt"
"github.com/gin-gonic/gin"
)

func Demo(c *gin.Context) {
mediumId := utils.GenerateUniqueRandomNumbers(8)
fmt.Println(mediumId)
var args interface{}
err := c.ShouldBindJSON(&args)
if err != nil {


+ 2
- 2
app/svc/svc_master.go Ver fichero

@@ -21,9 +21,9 @@ func GetMasterId(c *gin.Context) (masterId string) {
//TODO::通过域名查找masterId
host := c.Request.Host
userAppDomainDb := implement.NewUserAppDomainDb(db.Db)
userAppDomain, err := userAppDomainDb.GetMediumAppDomainByHost(host)
userAppDomain, err := userAppDomainDb.GetAppDomainByHost(host)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err)
e.OutErr(c, e.ERR_DB_ORM, err)it a
return
}
if userAppDomain == nil {


+ 1
- 1
go.mod Ver fichero

@@ -5,7 +5,7 @@ go 1.18
//replace code.fnuoos.com/zhimeng/model.git => E:/company/ad/models

require (
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240822024421-0129770e24d7
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240822030431-bf682f937fb0
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/boombuler/barcode v1.0.1
github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5


Cargando…
Cancelar
Guardar