后台用户字段验证,新增获取问题价格接口
This commit is contained in:
@@ -27,6 +27,12 @@ type QuestionDto struct {
|
||||
BaseClass []*BaseClassDto `json:"base_class"` // 关联分类
|
||||
}
|
||||
|
||||
// QuestionPriceDto 问题价格
|
||||
type QuestionPriceDto struct {
|
||||
Price float64 `json:"price"` // 价格(原价)
|
||||
DiscountPrice *float64 `json:"discount_price"` // 优惠价格
|
||||
}
|
||||
|
||||
// GetQuestionDto 详情-问题
|
||||
func GetQuestionDto(m *model.Question) *QuestionDto {
|
||||
return &QuestionDto{
|
||||
|
||||
Reference in New Issue
Block a user