MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / Create

Method Create

internal/repository/check.go:32–40  ·  view source on GitHub ↗

Create 创建审核记录

(ctx context.Context, check domain.Check)

Source from the content-addressed store, hash-verified

30
31// Create 创建审核记录
32func (r *checkRepository) Create(ctx context.Context, check domain.Check) (int64, error) {
33 // 创建新的审核信息
34 id, err := r.dao.Create(ctx, toDAOCheck(check))
35 if err != nil {
36 return -1, err
37 }
38
39 return id, nil
40}
41
42// UpdateStatus 更新审核状态
43func (r *checkRepository) UpdateStatus(ctx context.Context, check domain.Check) error {

Callers

nothing calls this directly

Calls 2

toDAOCheckFunction · 0.85
CreateMethod · 0.65

Tested by

no test coverage detected