Files
Mycontent/soul-api/internal/model/mentor.go

28 lines
1.8 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import "time"
// Mentor stitch_soul 导师,独立于 match 类型
type Mentor struct {
ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Avatar string `gorm:"column:avatar;size:500" json:"avatar"`
Name string `gorm:"column:name;size:80;not null" json:"name"`
Intro string `gorm:"column:intro;size:500" json:"intro"` // 简介/头衔
Tags string `gorm:"column:tags;size:500" json:"tags"` // 技能标签,逗号分隔
PriceSingle *float64 `gorm:"column:price_single;type:decimal(10,2)" json:"priceSingle"` // 单次咨询
PriceHalfYear *float64 `gorm:"column:price_half_year;type:decimal(10,2)" json:"priceHalfYear"` // 半年
PriceYear *float64 `gorm:"column:price_year;type:decimal(10,2)" json:"priceYear"` // 年度
Quote string `gorm:"column:quote;size:500" json:"quote"` // 引言
WhyFind string `gorm:"column:why_find;type:text" json:"whyFind"` // 为什么找
Offering string `gorm:"column:offering;type:text" json:"offering"` // 提供什么
JudgmentStyle string `gorm:"column:judgment_style;size:500" json:"judgmentStyle"` // 判断风格,逗号分隔
Sort int `gorm:"column:sort;default:0" json:"sort"`
Enabled *bool `gorm:"column:enabled;default:1" json:"enabled"`
// UserID 绑定小程序用户 id与超级个体名片同一路径member-detail?id=
UserID *string `gorm:"column:user_id;size:36;index" json:"userId,omitempty"`
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
}
func (Mentor) TableName() string { return "mentors" }