You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
580 B
Go
28 lines
580 B
Go
package handler
|
|
|
|
import (
|
|
"context"
|
|
"joybuywork/internal/service"
|
|
pb "joybuywork/proto/go_proto/w_coin"
|
|
)
|
|
|
|
type WCoinServer struct{}
|
|
|
|
// Save 积分配置保存
|
|
func (s *WCoinServer) Save(ctx context.Context, req *pb.SaveReq, res *pb.SaveRes) (err error) {
|
|
//初始化服务
|
|
srv := service.WCoin{}
|
|
srv.Init(ctx)
|
|
err = srv.Save(req, res)
|
|
return err
|
|
}
|
|
|
|
// Show 积分配置展示
|
|
func (s *WCoinServer) Show(ctx context.Context, req *pb.ShowReq, res *pb.ShowRes) (err error) {
|
|
//初始化服务
|
|
srv := service.WCoin{}
|
|
srv.Init(ctx)
|
|
err = srv.Show(req, res)
|
|
return err
|
|
}
|