Giter VIP home page Giter VIP logo

go-helper's People

Contributors

piupuer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-helper's Issues

CreateApi 接口

diff --git a/pkg/query/mysql_sys_api.go b/pkg/query/mysql_sys_api.go
index 5794e8f..080d3f3 100644
--- a/pkg/query/mysql_sys_api.go
+++ b/pkg/query/mysql_sys_api.go
@@ -114,7 +114,7 @@ func (my MySql) FindApiGroupByCategoryByRoleKeyword(currentRoleKeyword, roleKeyw
func (my MySql) CreateApi(r *req.CreateApi) (err error) {
_, span := tracer.Start(my.Ctx, tracing.Name(tracing.Db, "CreateApi"))
defer span.End()

  •   api := new(ms.SysApi)
    
  •   // api := new(ms.SysApi)
      err = my.Create(r, new(ms.SysApi))
      if err != nil {
              return errors.WithStack(err)
    

@@ -125,8 +125,8 @@ func (my MySql) CreateApi(r *req.CreateApi) (err error) {
for _, keyword := range r.RoleKeywords {
cs = append(cs, ms.SysRoleCasbin{
Keyword: keyword,

  •                           Path:    api.Path,
    
  •                           Method:  api.Method,
    
  •                           Path:    r.Path,
    
  •                           Method:  r.Method,
                      })
              }
    

如果是
Path: api.Path,
Method: api.Method,

api.Path 和 api.Method 都为空

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.