mirror of https://github.com/rocboss/paopao-ce
commit
03d5991867
@ -0,0 +1,36 @@
|
||||
// Copyright 2023 ROC. All rights reserved.
|
||||
// Use of this source code is governed by a MIT style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package slonik
|
||||
|
||||
import (
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/rocboss/paopao-ce/internal/core"
|
||||
"github.com/rocboss/paopao-ce/internal/core/cs"
|
||||
)
|
||||
|
||||
type tweetMetricSrvA struct {
|
||||
*pgxSrv
|
||||
}
|
||||
|
||||
func (s *tweetMetricSrvA) UpdateRankScore(metric *cs.TweetMetric) error {
|
||||
// TODO
|
||||
return cs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func (s *tweetMetricSrvA) AddTweetMetric(postId int64) (err error) {
|
||||
// TODO
|
||||
return cs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func (s *tweetMetricSrvA) DeleteTweetMetric(postId int64) (err error) {
|
||||
// TODO
|
||||
return cs.ErrNotImplemented
|
||||
}
|
||||
|
||||
func NewTweetMetricServentA(db *pgx.Conn) core.TweetMetricServantA {
|
||||
return &tweetMetricSrvA{
|
||||
pgxSrv: newPgxSrv(db),
|
||||
}
|
||||
}
|
Loading…
Reference in new issue