feat: import services and standardize Go 1.26.5
This commit is contained in:
18
apps/base/sender/internal/models/sender_template.go
Normal file
18
apps/base/sender/internal/models/sender_template.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
)
|
||||
|
||||
type SenderTemplate struct {
|
||||
types.Std_IICUDS
|
||||
Title string `gorm:"type:varchar(255);not null;default:'';comment:模板标题"`
|
||||
Key string `gorm:"type:varchar(100);not null;uniqueIndex;comment:模板标识"`
|
||||
Subjet string `gorm:"type:varchar(255);not null;default:'';comment:邮件主题"`
|
||||
Body string `gorm:"type:text;not null;comment:模板内容"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&SenderTemplate{})
|
||||
}
|
||||
Reference in New Issue
Block a user