Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4200f92
authored
Nov 21, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改错误
parent
e93b38b3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
7 deletions
cmd/static/add_score.go
cmd/static/company_info.go
cmd/static/enterprise_credit.go
cmd/static/history_bussiness.go
cmd/static/personal_credit.go
internal/dao/com_credits.go
internal/service/service.go
cmd/static/add_score.go
View file @
c4200f92
package
static
package
main
cmd/static/company_info.go
View file @
c4200f92
package
static
package
main
import
"fmt"
...
...
cmd/static/enterprise_credit.go
View file @
c4200f92
package
static
package
main
//企业征信
\ No newline at end of file
cmd/static/history_bussiness.go
View file @
c4200f92
package
static
package
main
//历史交易
\ No newline at end of file
cmd/static/personal_credit.go
View file @
c4200f92
package
static
package
main
//个人征信
\ No newline at end of file
internal/dao/com_credits.go
View file @
c4200f92
...
...
@@ -2,9 +2,9 @@ package dao
import
(
"context"
"github.com/pkg/errors"
"github.com/bilibili/kratos/pkg/database/sql"
"kaopu-server/internal/model"
"github.com/bilibili/kratos/pkg/database/sql"
"github.com/pkg/errors"
)
//列表方式获取会员信息
...
...
internal/service/service.go
View file @
c4200f92
...
...
@@ -56,4 +56,15 @@ func (s *Service) GetUserList(ctx context.Context) (res []*model.Users, err erro
fmt
.
Println
(
res
)
return
}
//获取用户列表
func
(
s
*
Service
)
GetCompanyCresitsList
(
ctx
context
.
Context
)
(
res
[]
*
model
.
Users
,
err
error
)
{
//调用DB方法,获取会员数据
res
,
_
=
s
.
dao
.
GetCompanyCresitsList
(
ctx
)
fmt
.
Println
(
res
)
return
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment