fix
wangpengfei
2023-08-25 3369456ac6de01e8703a9b38537406ec7c550bc5
fix
2个文件已修改
5 ■■■■ 已修改文件
model/salesLeads.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pkg/ecode/msg.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/salesLeads.go
@@ -9,7 +9,8 @@
type (
    SalesLeads struct {
        Id              int                  `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
        Name            string               `json:"name" gorm:"column:name;unique;type:varchar(255);comment:公司名称"`
        Name            string               `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:公司名称"`
        IsDeleted       bool                 `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:是否删除"`
        Number          string               `json:"number" gorm:"column:number;type:varchar(255);comment:销售线索编号"`
        ContactName     string               `json:"contact_name" gorm:"column:contact_name;type:varchar(255);comment:联系人姓名"`
        ContactPhone    string               `json:"contact_phone" gorm:"column:contact_phone;type:varchar(255);comment:联系人电话"`
pkg/ecode/msg.go
@@ -26,6 +26,8 @@
    SalesRefundProductNotExist:                                 "退货产品不存在",
    SalesRefundProductPriceOrAmountErr:                         "退货产品价格或数量错误",
    SalesRefundProductBeyondTotalAmount:                        "退货产品对应总价超出应退总价",
    SalesSourceExist:                                           "销售线索已存在",
    SalesLeadsExist:                                            "销售线索已存在",
}
func GetMsg(errCode int) (errMsg string) {