You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
413 B
18 lines
413 B
package pack
|
|
|
|
import "github.com/TremblingV5/DouTok/kitex_gen/relation"
|
|
|
|
type Relation struct {
|
|
UserId int64 `json:"user_id"`
|
|
ToUserId int64 `json:"to_user_id"`
|
|
ActionType int32 `json:"action_type"`
|
|
}
|
|
|
|
func NewRelation(req *relation.DouyinRelationActionRequest) *Relation {
|
|
relation := Relation{
|
|
UserId: req.UserId,
|
|
ToUserId: req.ToUserId,
|
|
ActionType: req.ActionType,
|
|
}
|
|
return &relation
|
|
}
|
|
|