feat: import services and standardize Go 1.26.5
This commit is contained in:
26
apps/social/feed/internal/server/setting_server.go
Normal file
26
apps/social/feed/internal/server/setting_server.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-social/feed/internal/logic/setting"
|
||||
pb "git.apinb.com/bsm-social/feed/pb"
|
||||
)
|
||||
|
||||
type SettingServer struct {
|
||||
pb.UnimplementedSettingServer
|
||||
}
|
||||
|
||||
func NewSettingServer() *SettingServer {
|
||||
return &SettingServer{}
|
||||
}
|
||||
|
||||
// 修改个人信息
|
||||
func (s *SettingServer) Info(ctx context.Context, in *pb.Empty) (*pb.Empty, error) {
|
||||
return setting.Info(ctx, in)
|
||||
}
|
||||
|
||||
// 修改权限信息
|
||||
func (s *SettingServer) Rights(ctx context.Context, in *pb.Empty) (*pb.Empty, error) {
|
||||
return setting.Rights(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user