audit.go
858 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package controllers
import (
"encoding/json"
"fmt"
"oppmg/protocol"
serverbac "oppmg/services/rbac"
)
type AuditController struct {
BaseController
}
//AuditList 机会管理列表
//@router /v1/audit/list [post]
func (c *AuditController) AuditList() {
var msg *protocol.ResponseMessage
defer func() {
c.ResposeJson(msg)
}()
// var request *protocol.ConfigScoreRequest
// if err := json.Unmarshal(this.Ctx.Input.RequestBody, &request); err != nil {
// log.Error("json 解析失败", err)
// msg = protocol.BadRequestParam("1")
// return
// }
// uid := this.GetUserId()
// companyId := this.GetCompanyId()
msg = protocol.NewReturnResponse(nil, nil)
return
}
func (c *AuditController) Test() {
data, err := serverbac.GetUserPermission(11)
fmt.Println(err)
bt, err := json.Marshal(data)
fmt.Println(err)
fmt.Println(string(bt))
}