models

package
v0.0.0-...-9e605f1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCommentReq

type ActionCommentReq struct {
	Token       string `form:"token" binding:"required"`
	ActorId     int    `form:"actor_id"`
	PollId      int    `form:"poll_id"`
	ActionType  int    `form:"action_type"`
	CommentText string `form:"comment_text"`
	CommentId   int    `form:"comment_id"`
}

type ActionCommentRes

type ActionCommentRes struct {
	StatusCode int             `json:"status_code"`
	StatusMsg  string          `json:"status_msg"`
	Comment    comment.Comment `json:"comment"`
}

type Comment

type Comment struct {
	// 与mongodb交互的Comment实体
	CommentUuid     string    `json:"comment_uuid" bson:"commentUuid,omitempty"`
	CommentUserName string    `json:"reviewer_userName" bson:"commentUserName,omitempty"`
	Content         string    `json:"content" bson:"content,omitempty"`
	CreateAt        time.Time `json:"create_at" bson:"createAt,omitempty"`
}

type CountCommentReq

type CountCommentReq struct {
	Token   string `form:"token"`
	ActorId int    `form:"actor_id"`
	PollId  int    `form:"poll_id"`
}

type CountCommentRes

type CountCommentRes struct {
	StatusCode   int    `json:"status_code"`
	StatusMsg    string `json:"status_msg"`
	CommentCount int    `json:"comment_count"`
}

type ListCommentReq

type ListCommentReq struct {
	PollUuid string `form:"poll_uuid" json:"poll_uuid"`
}

type ListCommentRes

type ListCommentRes struct {
	StatusCode  int                `json:"status_code"`
	StatusMsg   string             `json:"status_msg"`
	CommentList []*comment.Comment `json:"comment_list"`
}

Jump to

Keyboard shortcuts

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