From fc1e880fcceab7909558de8b26e4b2b1428c15d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Fri, 24 Jul 2026 10:40:33 +0800 Subject: [PATCH] 1 --- common/http/http.go | 4 ++-- short_drama.db | Bin 462848 -> 462848 bytes shortdrama/controller/bgm_controller.go | 8 ++++---- shortdrama/controller/character_controller.go | 8 ++++---- shortdrama/controller/episode_controller.go | 8 ++++---- shortdrama/controller/prop_controller.go | 8 ++++---- shortdrama/controller/scene_controller.go | 8 ++++---- .../model/dto/account_transaction_dto.go | 8 +++++++- shortdrama/model/dto/agent_profile_dto.go | 11 ++++++++++- shortdrama/model/dto/background_music_dto.go | 8 ++++---- shortdrama/model/dto/character_dto.go | 8 ++++---- shortdrama/model/dto/customer_profile_dto.go | 9 ++++++++- shortdrama/model/dto/drama_dto.go | 2 +- shortdrama/model/dto/episode_dto.go | 12 ++++++------ shortdrama/model/dto/model_config_dto.go | 4 ++-- .../model/dto/payment_channel_trade_dto.go | 3 +++ shortdrama/model/dto/payment_config_dto.go | 4 ++-- shortdrama/model/dto/payment_order_dto.go | 6 ++++++ shortdrama/model/dto/prop_dto.go | 8 ++++---- shortdrama/model/dto/region_pricing_dto.go | 8 +++++++- shortdrama/model/dto/scene_dto.go | 8 ++++---- shortdrama/model/dto/user_dto.go | 4 ++++ shortdrama/model/dto/user_model_config_dto.go | 6 +++--- 23 files changed, 97 insertions(+), 56 deletions(-) diff --git a/common/http/http.go b/common/http/http.go index be77227..b5d9217 100644 --- a/common/http/http.go +++ b/common/http/http.go @@ -38,9 +38,9 @@ func RouteRegister(controllers []interface{}) { for _, t := range controllers { sName := reflect.ValueOf(t).Elem().Type().Name() convertedStr := re.ReplaceAllStringFunc(sName, func(s string) string { - return fmt.Sprintf("/%s", strings.ToLower(s)) + return fmt.Sprintf("-%s", strings.ToLower(s)) }) - if len(convertedStr) > 0 && convertedStr[0] == '/' { + if len(convertedStr) > 0 && convertedStr[0] == '-' { convertedStr = convertedStr[1:] } Httpserver.Group("/"+convertedStr, func(group *ghttp.RouterGroup) { diff --git a/short_drama.db b/short_drama.db index f69f6538d61201956ed38ef69a0bd8bd40c888b6..0d466a8e3a056c5160315941fa1508a369485a11 100644 GIT binary patch delta 56 zcmZozAk(lwW`eZfCk6(FLLl}BVh08W_Wp@F#*CjD6Iv4(TN9XC6PQ~QSXvWUTNBu} JCa^Ey2LQ4h55E8a delta 56 zcmZozAk(lwW`eX}2?GN|ArSimu>%7GyWm6}W5$xkgw_Pc)&!>31m@NRmevH;)&#b# I3G55_0e