Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
faa39dc5
authored
Jun 17, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
忽略文件
parent
e2e927e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
63 deletions
cmd/bom_http_server.go → cmd/search_http_server.go
conf/.gitignore
protos/goods.proto
cmd/
bom
_http_server.go
→
cmd/
search
_http_server.go
View file @
faa39dc5
...
...
@@ -4,7 +4,6 @@ import (
"flag"
"github.com/gin-gonic/gin"
"github.com/micro/go-micro/v2/web"
"log"
"search_server/boot"
_
"search_server/controller"
"search_server/framework/gin_"
...
...
@@ -16,7 +15,7 @@ func main() {
flag
.
StringVar
(
&
path
,
"config"
,
"../conf/config.ini"
,
"配置文件"
)
flag
.
Parse
()
if
err
:=
boot
.
Boot
(
path
);
err
!=
nil
{
log
.
Println
(
err
)
panic
(
err
)
}
r
:=
gin
.
New
()
...
...
@@ -31,10 +30,10 @@ func main() {
)
if
err
:=
service
.
Init
();
err
!=
nil
{
log
.
Println
(
err
)
panic
(
err
)
}
if
err
:=
service
.
Run
();
err
!=
nil
{
log
.
Println
(
err
)
panic
(
err
)
}
}
conf/.gitignore
0 → 100644
View file @
faa39dc5
*
!.gitignore
\ No newline at end of file
protos/goods.proto
deleted
100644 → 0
View file @
e2e927e2
syntax
=
"proto3"
;
package
goods
;
message
OTHER_ATTRS
{
string
gross_wegiht
=
1
;
}
message
LADDER_PRICE
{
int64
purchases
=
1
;
float
price_cn
=
2
;
float
price_us
=
3
;
float
price_ac
=
4
;
}
message
GoodsModel
{
OTHER_ATTRS
other_attrs
=
1
;
int64
pick_type
=
2
;
string
barcode
=
3
;
string
goods_id
=
4
;
int64
goods_type
=
5
;
int64
supplier_id
=
6
;
int64
brand_id
=
7
;
int64
class_id1
=
8
;
int64
class_id2
=
9
;
string
goods_name
=
10
;
int64
status
=
11
;
string
encoded
=
12
;
string
encap
=
13
;
int64
packing
=
14
;
int64
goods_unit
=
15
;
bool
goods_images
=
16
;
bool
pdf
=
17
;
string
goods_brief
=
18
;
int64
moq
=
19
;
int64
mpq
=
20
;
repeated
LADDER_PRICE
ladder_price
=
21
;
int64
update_time
=
22
;
string
sku_name
=
23
;
int64
mpl
=
24
;
int64
stock
=
25
;
string
attrs
=
26
;
string
cost
=
27
;
string
new_cost
=
28
;
int64
supplier_stock
=
29
;
int64
self_supplier_type
=
30
;
string
cn_delivery_time
=
31
;
string
brand_name
=
32
;
string
supplier_name
=
33
;
string
goods_unit_name
=
34
;
string
packing_name
=
35
;
string
mpq_unit_name
=
36
;
int64
ac_type
=
37
;
int64
allow_coupon
=
38
;
string
class_id1_name
=
39
;
string
class_id2_name
=
40
;
int64
is_buy
=
41
;
string
hk_delivery_type
=
42
;
}
\ 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