refactor: reorganize modules and add Linux build tooling
This commit is contained in:
23
module/social/feed/internal/logic/setting/info.go
Normal file
23
module/social/feed/internal/logic/setting/info.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package setting
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/service"
|
||||
pb "bsm/full/module/social/feed/pb"
|
||||
)
|
||||
|
||||
// 修改个人信息
|
||||
func Info(ctx context.Context, in *pb.Empty) (reply *pb.Empty, err error) {
|
||||
// parse authorization meta.
|
||||
_, err = service.ParseMetaCtx(ctx, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO: valid code
|
||||
|
||||
// TODO: add your logic code & delete this line.
|
||||
|
||||
return
|
||||
}
|
||||
23
module/social/feed/internal/logic/setting/rights.go
Normal file
23
module/social/feed/internal/logic/setting/rights.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package setting
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/service"
|
||||
pb "bsm/full/module/social/feed/pb"
|
||||
)
|
||||
|
||||
// 修改权限信息
|
||||
func Rights(ctx context.Context, in *pb.Empty) (reply *pb.Empty, err error) {
|
||||
// parse authorization meta.
|
||||
_, err = service.ParseMetaCtx(ctx, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO: valid code
|
||||
|
||||
// TODO: add your logic code & delete this line.
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user