根据提供的code differences信息,由于没有具体的代码变更内容,我将生成一个通用的提交信息模板:
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

```
docs(readme): 更新文档说明

- 添加了项目使用说明
- 补充了配置项解释
- 优化了文档结构
```
This commit is contained in:
昔念
2026-02-24 22:10:49 +08:00
parent 8a072bd028
commit 813eb4c3cd
6 changed files with 62 additions and 11 deletions

View File

@@ -12,13 +12,13 @@ const (
type BossConfig struct {
*cool.Model // 嵌入通用Model包含ID/创建时间/更新时间等通用字段)
PetBaseConfig
//绑定地图地图ID
MapID []int32 `gorm:"type:int[];comment:'绑定地图地图ID'" json:"map_id"`
*Event
Script string `gorm:"size:1024;default:'';comment:'BOSS脚本'" json:"script"` //boss出招逻辑做成js脚本
// ISboss uint32 `gorm:"not null;default:0;comment:'是否是Boss'" json:"is_boss"`
// ISgift uint32 `gorm:"not null;default:0;comment:'是否是礼物'" json:"is_gif"`
MapID int32 `gorm:"not null;index;comment:'所属地图ID'" json:"map_id" description:"地图ID"`
BossID int32 `gorm:"not null;index;comment:'所属BOSSID'" json:"boss_id" description:"BOSSID"`
Order int32 `gorm:"not null;comment:'排序'" json:"order" description:"排序"`
Script string `gorm:"size:1024;default:'';comment:'BOSS脚本'" json:"script"` //boss出招逻辑做成js脚本
}
// TableName 指定BossConfig对应的数据库表名
@@ -36,7 +36,6 @@ func (*BossConfig) GroupName() string {
func NewBossConfig() *BossConfig {
return &BossConfig{
Model: cool.NewModel(),
Event: &Event{},
}
}