refactor: reorganize modules and add Linux build tooling
This commit is contained in:
23
module/ec/mall/internal/logic/store/mini_code.go
Normal file
23
module/ec/mall/internal/logic/store/mini_code.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
pb "bsm/full/module/ec/mall/pb"
|
||||
"git.apinb.com/bsm-sdk/core/service"
|
||||
)
|
||||
|
||||
// 获取小程序推荐码
|
||||
func MiniCode(ctx context.Context, in *pb.MiniCodeRequest) (reply *pb.MiniCodeReply, err error) {
|
||||
// parse authorization meta.
|
||||
_, err = service.ParseMetaCtx(ctx, &service.ParseOptions{RoleValue: "Mall_Admin"})
|
||||
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