后台用户字段验证,新增获取问题价格接口

This commit is contained in:
2024-10-18 09:31:22 +08:00
parent f1b66e7d14
commit 3eaeddfd38
4 changed files with 68 additions and 12 deletions
+6
View File
@@ -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{