UserReport

package
v5.1.34 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReport

func CreateReport(args *ArgsCreateReport) (err error)

CreateReport 创建新的反馈

func DeleteReport

func DeleteReport(args *ArgsDeleteReport) (err error)

DeleteReport 删除反馈

func ReportData

func ReportData(args *ArgsReportData) (err error)

ReportData 反馈问题

Types

type ArgsCreateReport

type ArgsCreateReport struct {
	//组织ID
	// 留空则表明为平台的用户留下的内容
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//举报内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//IP
	IP string `db:"ip" json:"ip"`
	//用户昵称
	UserName string `db:"user_name" json:"userName" check:"name" empty:"true"`
	//绑定手机号的国家代码
	NationCode string `db:"nation_code" json:"nationCode" check:"nationCode" empty:"true"`
	//手机号码,绑定后的手机
	Phone string `db:"phone" json:"phone" check:"phone" empty:"true"`
	//邮箱,如果不存在手机则必须存在的
	Email string `db:"email" json:"email" check:"email" empty:"true"`
	//截图
	Files pq.Int64Array `db:"files" json:"files" check:"ids" empty:"true"`
	//举报内容描述
	Content string `db:"content" json:"content" check:"des" min:"1" max:"3000"`
}

ArgsCreateReport 创建新的反馈参数

type ArgsDeleteReport

type ArgsDeleteReport struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeleteReport 删除反馈参数

type ArgsGetReport

type ArgsGetReport struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsGetReport 获取指定反馈参数

type ArgsGetReportList

type ArgsGetReportList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetReportList 获取反馈列表参数

type ArgsReportData

type ArgsReportData struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//反馈人
	ReportUserID int64 `db:"report_user_id" json:"reportUserID" check:"id"`
	//反馈内容
	ReportContent string `db:"report_content" json:"reportContent" check:"des" min:"1" max:"3000"`
}

ArgsReportData 反馈问题参数

type FieldsReport

type FieldsReport struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//反馈时间
	ReportAt time.Time `db:"report_at" json:"reportAt"`
	//组织ID
	// 留空则表明为平台的用户留下的内容
	OrgID int64 `db:"org_id" json:"orgID"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//举报内容来源
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//IP
	IP string `db:"ip" json:"ip"`
	//用户昵称
	UserName string `db:"user_name" json:"userName"`
	//绑定手机号的国家代码
	NationCode string `db:"nation_code" json:"nationCode"`
	//手机号码,绑定后的手机
	Phone string `db:"phone" json:"phone"`
	//邮箱,如果不存在手机则必须存在的
	Email string `db:"email" json:"email"`
	//截图
	Files pq.Int64Array `db:"files" json:"files"`
	//举报内容描述
	Content string `db:"content" json:"content"`
	//反馈人
	ReportUserID int64 `db:"report_user_id" json:"reportUserID"`
	//反馈内容
	ReportContent string `db:"report_content" json:"reportContent"`
}

FieldsReport 反馈结构

func GetReport

func GetReport(args *ArgsGetReport) (data FieldsReport, err error)

GetReport 获取指定反馈

func GetReportList

func GetReportList(args *ArgsGetReportList) (dataList []FieldsReport, dataCount int64, err error)

GetReportList 获取反馈列表

Jump to

Keyboard shortcuts

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