response

package
v0.0.0-...-56b5e3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerResponse

type AnswerResponse struct {
	ID       uint   `json:"ID"`
	Question string `json:"question"`
	Answer   string `json:"answer"`
	Dose     string `json:"dose"`
	IsExist  bool   `json:"is_exist"`
}

AnswerResponse 回复结构体

type BasicInfo

type BasicInfo struct {
	Name       string    `json:"name"`        // 用户姓名
	Sex        string    `json:"sex"`         // 用户性别
	SolarTerms string    `json:"solar_terms"` // 节气名称
	Physique   string    `json:"physique"`    // 体质
	Symptom    []Symptom `json:"symptom"`     // 症状
}

BasicInfo 用户基本信息

type CircleCommentsResponse

type CircleCommentsResponse struct {
	ID        uint      `json:"id"`
	Cid       uint      `json:"c_id" gorm:"column:c_id"`
	ReplyID   uint      `json:"reply_id"  gorm:"column:reply_id"`
	CreatedAt time.Time `json:"create_at" gorm:"column:create_at"`
	Uid       uint      `json:"u_id" gorm:"column:u_id"`
	UidName   string    `json:"uid_name"`
	Avatar    string    `json:"avatar"`
	Text      string    `json:"text" gorm:"column:text"`
	ToUid     uint      `json:"to_uid" gorm:"column:to_uid"`
	ToUidName string    `json:"to_uid_name"`
}

type CircleResponse

type CircleResponse struct {
	Cid        uint      `json:"c_id" gorm:"column:c_id"`
	Name       string    `json:"name" gorm:"column:name"`        // 用户名称
	Avatar     string    `json:"avatar" gorm:"column:avatar"`    // 用户头像
	TopicName  string    `json:"topic" gorm:"column:topic_name"` // 话题名称
	Text       string    `json:"text" gorm:"column:text"`
	Img        string    `json:"img" gorm:"column:img"`
	CreatedAt  time.Time `json:"create_at" gorm:"column:create_at"` //创建时间
	Views      uint      `json:"views" gorm:"column:views"`
	PraiseNum  uint      `json:"praise_num" gorm:"column:praise_num"`
	CommentNum uint      `json:"comment_num" gorm:"column:comment_num"`
	IsPraise   bool      `json:"isPraise" gorm:"-"` //是否点赞
}

CircleResponse 原返回结构体

type DiseaseList

type DiseaseList struct {
	Disease string `json:"disease"` // 病症名称
}

DiseaseList 病症列表

type NewCircleResponse

type NewCircleResponse struct {
	Cid        uint      `json:"c_id" gorm:"column:c_id"`
	Name       string    `json:"name" gorm:"column:name"`        // 用户名称
	Avatar     string    `json:"avatar" gorm:"column:avatar"`    // 用户头像
	TopicName  string    `json:"topic" gorm:"column:topic_name"` // 话题名称
	Text       string    `json:"text" gorm:"column:text"`
	Img        string    `json:"img" gorm:"column:img"`
	CreatedAt  time.Time `json:"create_at" gorm:"column:create_at"` //创建时间
	Views      string    `json:"views" gorm:"column:views"`
	PraiseNum  string    `json:"praise_num" gorm:"column:praise_num"`
	CommentNum string    `json:"comment_num" gorm:"column:comment_num"`
	IsPraise   bool      `json:"isPraise" gorm:"-"` //是否点赞
}

NewCircleResponse 造假浏览量点赞量结构体

type Symptom

type Symptom struct {
	DiseaseType string        `json:"disease_type"` // 病症类型名称
	DiseaseList []DiseaseList `json:"disease_list"` // 病症
}

Symptom 症状

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL