refactor: reorganize modules and add Linux build tooling
This commit is contained in:
30
module/base/fts/internal/logic/fetch.go
Normal file
30
module/base/fts/internal/logic/fetch.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package logic
|
||||
|
||||
// import (
|
||||
// "context"
|
||||
// "net/http"
|
||||
|
||||
// "bsm/full/module/base/fts/internal/models"
|
||||
// "bsm/full/module/base/fts/internal/svc"
|
||||
// "bsm/full/module/base/fts/internal/types"
|
||||
// "git.apinb.com/bsm-sdk/core/exception"
|
||||
|
||||
// "github.com/zeromicro/go-zero/core/logx"
|
||||
// )
|
||||
|
||||
// func (l *ListLogic) List(in *types.Paginate, r *http.Request) (resp *types.Base, err error) {
|
||||
// // 解析token
|
||||
// claims, err := parseToken(r.Header.Get("Authorization"))
|
||||
// if err != nil {
|
||||
// return nil, exception.ErrAuthNotFound
|
||||
// }
|
||||
// // 获取数据
|
||||
// data, cnt, err := models.GetFileList(in.Offset, in.Size, claims.Identity)
|
||||
// if err != nil {
|
||||
// return nil, exception.ErrDBFatal
|
||||
// }
|
||||
// if cnt == 0 {
|
||||
// return Success(""), nil
|
||||
// }
|
||||
// return Success(data), nil
|
||||
// }
|
||||
Reference in New Issue
Block a user