审查视图

pkg/infrastructure/pg/models/log_sms.go 661 字节
tangxvhui authored
1 2
package models
tangxvhui authored
3 4 5
import (
	"time"
)
tangxvhui authored
6 7 8 9

type LogSms struct {
	tableName  struct{}          `comment:"记录短信消息" pg:"log_sms"`
	Id         int               `pg:",pk"`
tangxvhui authored
10
	Phone      string            `pg:"phone"`
tangxvhui authored
11
	TemplateId int               `pg:"template_id"`
tangxvhui authored
12 13
	Template   string            `pg:"template"`
	Value      map[string]string `pg:"value"`
14
	CreatedAt  time.Time         `pg:"created_at"`
tangxvhui authored
15
	Result     string            `pg:"result"`
tangxvhui authored
16 17 18 19
	Status     string            `pg:"status"`
	From       string            `pg:"from"`  //业务来源
	Index      int               `pg:"index"` //业务数据索引
	ExecuteAt  time.Time         `pg:"execute_at"`
tangxvhui authored
20
}