File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
88
99ARG APP
1010
11- ENV NSQ_ADDR=nsq:4150
12- ENV NSQ_TOPIC_PREFIX=apipark
11+ ENV NSQ_ADDR=${APP}- nsq:4150
12+ ENV NSQ_TOPIC_PREFIX=${APP}
1313
1414RUN mkdir -p /${APP}
1515
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ source ./scripts/common.sh
1717APP=" apipark"
1818
1919
20- mkdir -p scripts/cmd/ && cp cmd/${APP} scripts/cmd/
20+ mkdir -p scripts/cmd/ && cp cmd/${APP} scripts/cmd/ && cp cmd/apipark_ai_event_listen scripts/cmd/
2121
2222VERSION=$( gen_version)
2323
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ echo -e " - $s" >> config.yml
2727done
2828echo -e " nsq:" >> config.yml
2929echo -e " addr: ${NSQ_ADDR} " >> config.yml
30- echo -e " topic : ${NSQ_TOPIC } " >> config.yml
30+ echo -e " topic_prefix : ${NSQ_TOPIC_PREFIX } " >> config.yml
3131echo -e " port: 8288" >> config.yml
3232echo -e " error_log:" >> config.yml
3333echo -e " dir: ${ERROR_DIR} " >> config.yml
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ type Provider struct {
88 Name string `gorm:"type:varchar(100);not null;column:name;comment:name"`
99 DefaultLLM string `gorm:"type:varchar(255);not null;column:default_llm;comment:默认模型ID"`
1010 Config string `gorm:"type:text;not null;column:config;comment:配置信息"`
11- Status int `gorm:"type:tinyint(1);not null;column:status;comment:状态,0:停用;1:启用,2:异常"`
11+ Status int `gorm:"type:tinyint(1);not null;column:status;comment:状态,0:停用;1:启用,2:异常;default:1 "`
1212 Priority int `gorm:"type:int;not null;column:priority;comment:优先级,值越小优先级越高"`
1313 Creator string `gorm:"size:36;not null;column:creator;comment:创建人;index:creator" aovalue:"creator"` // 创建人
1414 Updater string `gorm:"size:36;not null;column:updater;comment:更新人;index:updater" aovalue:"updater"` // 更新人
You can’t perform that action at this time.
0 commit comments