1
This commit is contained in:
parent
8bef25d8c4
commit
b27a508fe6
@ -80,7 +80,7 @@ func (this *MailApi) AddMail(c *gin.Context) {
|
|||||||
|
|
||||||
func (this *MailApi) EditMail(c *gin.Context) {
|
func (this *MailApi) EditMail(c *gin.Context) {
|
||||||
reqJson := struct {
|
reqJson := struct {
|
||||||
MailId int64 `binding:"required" json:"mail_id"`
|
MailId int64 `binding:"required" json:"mail_id,string"`
|
||||||
MailType int32 `binding:"required" json:"mail_type"`
|
MailType int32 `binding:"required" json:"mail_type"`
|
||||||
SendTime int32 `json:"sendtime"`
|
SendTime int32 `json:"sendtime"`
|
||||||
ExpireTime int32 `json:"expiretime"`
|
ExpireTime int32 `json:"expiretime"`
|
||||||
|
@ -23,7 +23,7 @@ Attachments:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type Mail struct {
|
type Mail struct {
|
||||||
MailId int64 `gorm:"primaryKey;column:mail_id;<-:create" json:"mail_id"`
|
MailId int64 `gorm:"primaryKey;column:mail_id;<-:create" json:"mail_id,string"`
|
||||||
MailType int32 `gorm:"column:mail_type;<-:create" json:"mail_type"`
|
MailType int32 `gorm:"column:mail_type;<-:create" json:"mail_type"`
|
||||||
Subject string `gorm:"column:subject" json:"subject"`
|
Subject string `gorm:"column:subject" json:"subject"`
|
||||||
Content string `gorm:"column:content" json:"content"`
|
Content string `gorm:"column:content" json:"content"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user