正在显示
2 个修改的文件
包含
9 行增加
和
74 行删除
@@ -6,6 +6,7 @@ import ( | @@ -6,6 +6,7 @@ import ( | ||
6 | _ "ability/routers" | 6 | _ "ability/routers" |
7 | "github.com/astaxie/beego" | 7 | "github.com/astaxie/beego" |
8 | _ "github.com/go-sql-driver/mysql" | 8 | _ "github.com/go-sql-driver/mysql" |
9 | + "gitlab.fjmaimaimai.com/mmm-go/gocomm/common" | ||
9 | "gitlab.fjmaimaimai.com/mmm-go/gocomm/config" | 10 | "gitlab.fjmaimaimai.com/mmm-go/gocomm/config" |
10 | "gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log" | 11 | "gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log" |
11 | "gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/orm" | 12 | "gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/orm" |
@@ -29,6 +30,14 @@ func init() { | @@ -29,6 +30,14 @@ func init() { | ||
29 | MaxIdle: 100, | 30 | MaxIdle: 100, |
30 | MaxOpen: 100, | 31 | MaxOpen: 100, |
31 | }) | 32 | }) |
33 | + //TODO:邮件服务配置 | ||
34 | + common.InitMailService(&common.MailConfig{ | ||
35 | + //Host:"smtp.qq.com", | ||
36 | + //Port:465, | ||
37 | + //From:"785410885@qq.com", | ||
38 | + //Password:"ibfduqhfmgypbffe", //授权码 | ||
39 | + //IsUseSsl:true, | ||
40 | + }) | ||
32 | } | 41 | } |
33 | 42 | ||
34 | func main() { | 43 | func main() { |
routers/commentsRouter_controllers_v1.go
已删除
100644 → 0
1 | -package routers | ||
2 | - | ||
3 | -import ( | ||
4 | - "github.com/astaxie/beego" | ||
5 | - "github.com/astaxie/beego/context/param" | ||
6 | -) | ||
7 | - | ||
8 | -func init() { | ||
9 | - | ||
10 | - beego.GlobalControllerRouter["ability/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:AuthController"], | ||
11 | - beego.ControllerComments{ | ||
12 | - Method: "AccessToken", | ||
13 | - Router: `/accessToken`, | ||
14 | - AllowHTTPMethods: []string{"post"}, | ||
15 | - MethodParams: param.Make(), | ||
16 | - Params: nil}) | ||
17 | - | ||
18 | - beego.GlobalControllerRouter["ability/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:AuthController"], | ||
19 | - beego.ControllerComments{ | ||
20 | - Method: "Login", | ||
21 | - Router: `/login`, | ||
22 | - AllowHTTPMethods: []string{"post"}, | ||
23 | - MethodParams: param.Make(), | ||
24 | - Params: nil}) | ||
25 | - | ||
26 | - beego.GlobalControllerRouter["ability/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:AuthController"], | ||
27 | - beego.ControllerComments{ | ||
28 | - Method: "RefreshToken", | ||
29 | - Router: `/refreshToken`, | ||
30 | - AllowHTTPMethods: []string{"post"}, | ||
31 | - MethodParams: param.Make(), | ||
32 | - Params: nil}) | ||
33 | - | ||
34 | - beego.GlobalControllerRouter["ability/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:AuthController"], | ||
35 | - beego.ControllerComments{ | ||
36 | - Method: "SmsCode", | ||
37 | - Router: `/smsCode`, | ||
38 | - AllowHTTPMethods: []string{"post"}, | ||
39 | - MethodParams: param.Make(), | ||
40 | - Params: nil}) | ||
41 | - | ||
42 | - beego.GlobalControllerRouter["ability/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:AuthController"], | ||
43 | - beego.ControllerComments{ | ||
44 | - Method: "UpdateDevice", | ||
45 | - Router: `/updateDevice`, | ||
46 | - AllowHTTPMethods: []string{"post"}, | ||
47 | - MethodParams: param.Make(), | ||
48 | - Params: nil}) | ||
49 | - | ||
50 | - beego.GlobalControllerRouter["ability/controllers/v1:UploadController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:UploadController"], | ||
51 | - beego.ControllerComments{ | ||
52 | - Method: "Image", | ||
53 | - Router: `/image`, | ||
54 | - AllowHTTPMethods: []string{"post"}, | ||
55 | - MethodParams: param.Make(), | ||
56 | - Params: nil}) | ||
57 | - | ||
58 | - beego.GlobalControllerRouter["ability/controllers/v1:UploadController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:UploadController"], | ||
59 | - beego.ControllerComments{ | ||
60 | - Method: "Voice", | ||
61 | - Router: `/voice`, | ||
62 | - AllowHTTPMethods: []string{"post"}, | ||
63 | - MethodParams: param.Make(), | ||
64 | - Params: nil}) | ||
65 | - | ||
66 | - beego.GlobalControllerRouter["ability/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["ability/controllers/v1:UserController"], | ||
67 | - beego.ControllerComments{ | ||
68 | - Method: "Login", | ||
69 | - Router: `/v1/user/login`, | ||
70 | - AllowHTTPMethods: []string{"post"}, | ||
71 | - MethodParams: param.Make(), | ||
72 | - Params: nil}) | ||
73 | - | ||
74 | -} |
-
请 注册 或 登录 后发表评论