lizhe 4 年之前
父节点
当前提交
97f8cbf0cc

+ 8 - 0
api/etc/jyorder-api.yaml

@@ -0,0 +1,8 @@
+Name: jyOrder-api
+Host: 0.0.0.0
+Port: 8888
+JyOrder:
+  Etcd:
+    Hosts:
+      - 127.0.0.1:2379
+    Key: jyorder.rpc

+ 11 - 0
api/internal/config/config.go

@@ -0,0 +1,11 @@
+package config
+
+import (
+	"github.com/tal-tech/go-zero/rest"
+	"github.com/tal-tech/go-zero/zrpc"
+)
+
+type Config struct {
+	rest.RestConf
+	JyOrder zrpc.RpcClientConf
+}

+ 29 - 0
api/internal/handler/createorderhandler.go

@@ -0,0 +1,29 @@
+package handler
+
+import (
+	"net/http"
+
+	"app.yhyue.com/moapp/jyOrder/api/internal/logic"
+	"app.yhyue.com/moapp/jyOrder/api/internal/svc"
+	"app.yhyue.com/moapp/jyOrder/api/internal/types"
+
+	"github.com/tal-tech/go-zero/rest/httpx"
+)
+
+func CreateOrderHandler(ctx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.Request
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewCreateOrderLogic(r.Context(), ctx)
+		resp, err := l.CreateOrder(req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 22 - 0
api/internal/handler/routes.go

@@ -0,0 +1,22 @@
+// Code generated by goctl. DO NOT EDIT.
+package handler
+
+import (
+	"net/http"
+
+	"app.yhyue.com/moapp/jyOrder/api/internal/svc"
+
+	"github.com/tal-tech/go-zero/rest"
+)
+
+func RegisterHandlers(engine *rest.Server, serverCtx *svc.ServiceContext) {
+	engine.AddRoutes(
+		[]rest.Route{
+			{
+				Method:  http.MethodPost,
+				Path:    "/CreateOrder",
+				Handler: CreateOrderHandler(serverCtx),
+			},
+		},
+	)
+}

+ 88 - 0
api/internal/logic/createorderlogic.go

@@ -0,0 +1,88 @@
+package logic
+
+import (
+	"app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
+	"context"
+
+	"app.yhyue.com/moapp/jyOrder/api/internal/svc"
+	"app.yhyue.com/moapp/jyOrder/api/internal/types"
+
+	"github.com/tal-tech/go-zero/core/logx"
+)
+
+type CreateOrderLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+}
+
+func NewCreateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) CreateOrderLogic {
+	return CreateOrderLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+	}
+}
+
+func (l *CreateOrderLogic) CreateOrder(req types.Request) (*types.Response, error) {
+	// todo: add your logic here and delete this line
+	result := &types.Response{}
+	resp, err :=l.svcCtx.JyOrder.CreateOrder(l.ctx,&jyOrder.Request{
+		PayMoney:req.Pay_money,
+		OrderMoney:req.Order_money,
+		UserNickname:req.User_nickname,
+		PayTime:req.Pay_time,
+		OrderStatus:req.Order_status,
+		CreateTime:req.Create_time,
+		UserOpenid:req.User_openid,
+		ServiceStatus:req.Service_status,
+		Filter:req.Filter,
+		PrepayId:req.Prepay_id,
+		CodeUrl:req.Code_url,
+		OutTradeNo:req.Out_trade_no,
+		FilterKeys:req.Filter_keys,
+		FilterPublishtime:req.Filter_publishtime,
+		DataCount:req.Data_count,
+		UserMail:req.User_mail,
+		DataSpec:req.Data_spec,
+		OriginalPrice:req.Original_price,
+		OrderCode:req.Order_code,
+		PrepayTime:req.Prepay_time,
+		ProductType:req.Product_type,
+		FilterId:req.Filter_id,
+		PayWay:req.Pay_way,
+		UserPhone:req.User_phone,
+		ApplybillStatus:req.Applybill_status,
+		DownloadUrl:req.Download_url,
+		ApplybillType:req.Applybill_type,
+		ApplybillTaxnum:req.Applybill_taxnum,
+		RemindStatus:req.Remind_status,
+		ApplybillCompany:req.Applybill_company,
+		UserId:req.User_id,
+		VipStarttime:req.Vip_starttime,
+		VipEndtime:req.Vip_endtime,
+		VipType:req.Vip_type,
+		CourseStatus:req.Course_status,
+		ApplyRefundName:req.Apply_refund_name,
+		ApplyRefundReason:req.Apply_refund_reason,
+		ApplyRefundTime:req.Apply_refund_time,
+		DelStatus:req.Del_status,
+		DelTime:req.Del_time,
+		DisWord:req.Dis_word,
+		DiscountPrice:req.Discount_price,
+		DRelationId:req.D_relation_id,
+		ReturnStatus:req.Return_status,
+		RefundStatus:req.Refund_status,
+		IsBackstageOrder:req.Is_backstage_order,
+		Salesperson:req.Salesperson,
+		CompanyName:req.Company_name,
+		BillingMode:req.BillingMode,
+	})
+	if err != nil {
+		return nil, err
+	}
+	result.Code = resp.Code
+	result.Message = resp.Message
+	result.Data = resp.Data
+	return result, nil
+}

+ 19 - 0
api/internal/svc/servicecontext.go

@@ -0,0 +1,19 @@
+package svc
+
+import (
+	"app.yhyue.com/moapp/jyOrder/api/internal/config"
+	"app.yhyue.com/moapp/jyOrder/rpc/jyorderclient"
+	"github.com/tal-tech/go-zero/zrpc"
+)
+
+type ServiceContext struct {
+	Config config.Config
+	JyOrder jyorderclient.JyOrder
+}
+
+func NewServiceContext(c config.Config) *ServiceContext {
+	return &ServiceContext{
+		Config: c,
+		JyOrder:jyorderclient.NewJyOrder(zrpc.MustNewClient(c.JyOrder)),
+	}
+}

+ 61 - 0
api/internal/types/types.go

@@ -0,0 +1,61 @@
+// Code generated by goctl. DO NOT EDIT.
+package types
+
+type Request struct {
+	Pay_money           int64  `form:"pay_money"`
+	Order_money         int64  `form:"order_money"`
+	User_nickname       int64  `form:"user_nickname,optional"`
+	Pay_time            string `form:"pay_time"`
+	Order_status        int64  `form:"order_status"`
+	Create_time         string `form:"create_time"`
+	User_openid         string `form:"user_openid,optional"`
+	Service_status      int64  `form:"service_status,optional"`
+	Service_time        string `form:"service_time,optional"`
+	Filter              string `form:"filter"`
+	Prepay_id           string `form:"prepay_id,optional"`
+	Code_url            string `form:"code_url,optional"`
+	Out_trade_no        string `form:"out_trade_no,optional"`
+	Filter_keys         string `form:"filter_keys,optional"`
+	Filter_publishtime  string `form:"filter_publishtime,optional"`
+	Data_count          int64  `form:"data_count,optional"`
+	User_mail           string `form:"user_mail,optional"`
+	Data_spec           string `form:"data_spec,optional"`
+	Original_price      int64  `form:"original_price,optional"`
+	Order_code          string `form:"order_code"`
+	Prepay_time         string `form:"prepay_time,optional"`
+	Product_type        string `form:"product_type"`
+	Filter_id           string `form:"filter_id,optional"`
+	Pay_way             string `form:"pay_way"`
+	User_phone          string `form:"user_phone"`
+	Applybill_status    int64  `form:"applybill_status,optional"`
+	Download_url        string `form:"download_url,optional"`
+	Applybill_type      int64  `form:"applybill_type,optional"`
+	Applybill_taxnum    string `form:"applybill_taxnum,optional"`
+	Remind_status       int64  `form:"remind_status,optional"`
+	Applybill_company   string `form:"applybill_company,optional"`
+	User_id             string `form:"user_id"`
+	Vip_starttime       string `form:"vip_starttime"`
+	Vip_endtime         string `form:"vip_endtime"`
+	Vip_type            int64  `form:"vip_type,optional"`
+	Course_status       int64  `form:"course_status,optional"`
+	Apply_refund_name   string `form:"apply_refund_name,optional"`
+	Apply_refund_reason string `form:"apply_refund_reason,optional"`
+	Apply_refund_time   int64  `form:"apply_refund_time,optional"`
+	Del_status          int64  `form:"del_status,optional"`
+	Del_time            string `form:"del_time,optional"`
+	Dis_word            string `form:"dis_word,optional"`
+	Discount_price      int64  `form:"discount_price,optional"`
+	D_relation_id       string `form:"d_relation_id,optional"`
+	Return_status       int64  `form:"return_status"`
+	Refund_status       int64  `form:"refund_status"`
+	Is_backstage_order  int64  `form:"is_backstage_order"`
+	Salesperson         string `form:"salesperson"`
+	Company_name        string `form:"company_name"`
+	BillingMode         int64  `form:"billingMode"`
+}
+
+type Response struct {
+	Code    int64  `form:"code"`    //响应代码
+	Message string `form:"message"` //响应消息
+	Data    int64  `form:"data"`    //订单ID
+}

+ 74 - 0
api/jyOrder.api

@@ -0,0 +1,74 @@
+syntax = "v1"
+
+info(
+	title: // TODO: add title
+	desc: // TODO: add description
+	author: "lizhe"
+	email: "lizhe@topnet.net.cn"
+)
+
+type request {
+	// TODO: add members here and delete this comment
+	Pay_money           int64  `form:"pay_money"`
+	Order_money         int64  `form:"order_money"`
+	User_nickname       int64  `form:"user_nickname,optional"`
+	Pay_time            string `form:"pay_time"`
+	Order_status        int64  `form:"order_status"`
+	Create_time         string `form:"create_time"`
+	User_openid         string `form:"user_openid,optional"`
+	Service_status      int64  `form:"service_status,optional"`
+	Service_time        string `form:"service_time,optional"`
+	Filter              string `form:"filter"`
+	Prepay_id           string `form:"prepay_id,optional"`
+	Code_url            string `form:"code_url,optional"`
+	Out_trade_no        string `form:"out_trade_no,optional"`
+	Filter_keys         string `form:"filter_keys,optional"`
+	Filter_publishtime  string `form:"filter_publishtime,optional"`
+	Data_count          int64  `form:"data_count,optional"`
+	User_mail           string `form:"user_mail,optional"`
+	Data_spec           string `form:"data_spec,optional"`
+	Original_price      int64  `form:"original_price,optional"`
+	Order_code          string `form:"order_code"`
+	Prepay_time         string `form:"prepay_time,optional"`
+	Product_type        string `form:"product_type"`
+	Filter_id           string `form:"filter_id,optional"`
+	Pay_way             string `form:"pay_way"`
+	User_phone          string `form:"user_phone"`
+	Applybill_status    int64  `form:"applybill_status,optional"`
+	Download_url        string `form:"download_url,optional"`
+	Applybill_type      int64  `form:"applybill_type,optional"`
+	Applybill_taxnum    string `form:"applybill_taxnum,optional"`
+	Remind_status       int64  `form:"remind_status,optional"`
+	Applybill_company   string `form:"applybill_company,optional"`
+	User_id             string `form:"user_id"`
+	Vip_starttime       string `form:"vip_starttime"`
+	Vip_endtime         string `form:"vip_endtime"`
+	Vip_type            int64  `form:"vip_type,optional"`
+	Course_status       int64  `form:"course_status,optional"`
+	Apply_refund_name   string `form:"apply_refund_name,optional"`
+	Apply_refund_reason string `form:"apply_refund_reason,optional"`
+	Apply_refund_time   int64  `form:"apply_refund_time,optional"`
+	Del_status          int64  `form:"del_status,optional"`
+	Del_time            string `form:"del_time,optional"`
+	Dis_word            string `form:"dis_word,optional"`
+	Discount_price      int64  `form:"discount_price,optional"`
+	D_relation_id       string `form:"d_relation_id,optional"`
+	Return_status       int64  `form:"return_status"`
+	Refund_status       int64  `form:"refund_status"`
+	Is_backstage_order  int64  `form:"is_backstage_order"`
+	Salesperson         string `form:"salesperson"`
+	Company_name        string `form:"company_name,optional"`
+	BillingMode         int64  `form:"billingMode"`
+}
+
+type response {
+	// TODO: add members here and delete this comment
+	Code    int64  `form:"code"`    //响应代码
+	Message string `form:"message"` //响应消息
+	Data    int64  `form:"data"`    //订单ID
+}
+
+service jyOrder-api {
+	@handler CreateOrderHandler // TODO: set handler name and delete this comment
+	post /CreateOrder (request) returns (response)
+}

+ 31 - 0
api/jyorder.go

@@ -0,0 +1,31 @@
+package main
+
+import (
+	"flag"
+	"fmt"
+
+	"app.yhyue.com/moapp/jyOrder/api/internal/config"
+	"app.yhyue.com/moapp/jyOrder/api/internal/handler"
+	"app.yhyue.com/moapp/jyOrder/api/internal/svc"
+
+	"github.com/tal-tech/go-zero/core/conf"
+	"github.com/tal-tech/go-zero/rest"
+)
+
+var configFile = flag.String("f", "etc/jyOrder-api.yaml", "the config file")
+
+func main() {
+	flag.Parse()
+
+	var c config.Config
+	conf.MustLoad(*configFile, &c)
+
+	ctx := svc.NewServiceContext(c)
+	server := rest.MustNewServer(c.RestConf)
+	defer server.Stop()
+
+	handler.RegisterHandlers(server, ctx)
+
+	fmt.Printf("Starting server at %s:%d...\n", c.Host, c.Port)
+	server.Start()
+}

+ 60 - 0
entity/order.go

@@ -0,0 +1,60 @@
+package entity
+
+import (
+	"github.com/go-xorm/xorm"
+)
+
+//定义orm引擎
+var Engine *xorm.Engine
+
+//定义返回状态
+const (
+	SuccessCode int64 = 1
+	ErrorCode   int64 = 0
+)
+
+//订单
+type Order struct {
+	Id                  int64  `xorm:"pk autoincr id" form:"id" json:"id"`
+	Pay_money           int64  `xorm:"pay_money" form:"pay_money" json:"pay_money"`
+	Order_money         int64  `xorm:"order_money" form:"order_money" json:"order_money"`
+	Pay_time            string `xorm:"pay_time" form:"pay_time" json:"pay_time"`
+	Order_status        int64  `xorm:"order_status" form:"order_status" json:"order_status"`
+	Create_time         string `xorm:"create_time" form:"create_time" json:"create_time"`
+	User_openid         string `xorm:"user_openid" form:"user_openid" json:"user_openid"`
+	Service_status      int64  `xorm:"service_status" form:"service_status" json:"service_status"`
+	Filter              string `xorm:"filter" form:"filter" json:"filter"`
+	Prepay_id           string `xorm:"prepay_id" form:"prepay_id" json:"prepay_id"`
+	Code_url            string `xorm:"code_url" form:"code_url" json:"code_url"`
+	Out_trade_no        string `xorm:"out_trade_no" form:"out_trade_no" json:"out_trade_no"`
+	Filter_keys         string `xorm:"filter_keys" form:"filter_keys" json:"filter_keys"`
+	Filter_publishtime  string `xorm:"filter_publishtime" form:"filter_publishtime" json:"filter_publishtime"`
+	Data_count          int64  `xorm:"data_count" form:"data_count" json:"data_count"`
+	User_mail           string `xorm:"user_mail" form:"user_mail" json:"user_mail"`
+	Data_spec           string `xorm:"data_spec" form:"data_spec" json:"data_spec"`
+	Original_price      int64  `xorm:"original_price" form:"original_price" json:"original_price"`
+	Order_code          string `xorm:"order_code" form:"order_code" json:"order_code"`
+	Prepay_time         string `xorm:"prepay_time" form:"prepay_time" json:"prepay_time"`
+	Product_type        string `xorm:"product_type" form:"product_type" json:"product_type"`
+	Filter_id           string `xorm:"filter_id" form:"filter_id" json:"filter_id"`
+	Pay_way             string `xorm:"pay_way" form:"pay_way" json:"pay_way"`
+	User_phone          string `xorm:"user_phone" form:"user_phone" json:"user_phone"`
+	Applybill_status    int64  `xorm:"applybill_status" form:"applybill_status" json:"applybill_status"`
+	Download_url        string `xorm:"download_url" form:"download_url" json:"download_url"`
+	Applybill_type      int64  `xorm:"applybill_type" form:"applybill_type" json:"applybill_type"`
+	Applybill_taxnum    string `xorm:"applybill_taxnum" form:"applybill_taxnum" json:"applybill_taxnum"`
+	Applybill_company   string `xorm:"applybill_company" form:"applybill_company" json:"applybill_company"`
+	User_id             string `xorm:"user_id" form:"user_id" json:"user_id"`
+	Vip_starttime       string `xorm:"vip_starttime" form:"vip_starttime" json:"vip_starttime"`
+	Vip_endtime         string `xorm:"vip_endtime" form:"vip_endtime" json:"vip_endtime"`
+	Course_status       int64  `xorm:"course_status" form:"course_status" json:"course_status"`
+	Dis_word            string `xorm:"dis_word" form:"dis_word" json:"dis_word"`
+	Discount_price      int64  `xorm:"discount_price" form:"discount_price" json:"discount_price"`
+	D_relation_id       string `xorm:"d_relation_id" form:"d_relation_id" json:"d_relation_id"`
+	Return_status       int64  `xorm:"return_status" form:"return_status" json:"return_status"`
+	Refund_status       int64  `xorm:"refund_status" form:"refund_status" json:"refund_status"`
+	Is_backstage_order  int64  `xorm:"is_backstage_order" form:"is_backstage_order" json:"is_backstage_order"`
+	Salesperson         string `xorm:"salesperson" form:"salesperson" json:"salesperson"`
+	Company_name        string `xorm:"company_name" form:"company_name" json:"company_name"`
+	BillingMode         int64  `xorm:"billingMode" form:"billingMode" json:"billingMode"`
+}

+ 12 - 0
go.mod

@@ -0,0 +1,12 @@
+module app.yhyue.com/moapp/jyOrder
+
+go 1.13
+
+require (
+	github.com/go-sql-driver/mysql v1.5.0
+	github.com/go-xorm/xorm v0.7.9
+	github.com/golang/protobuf v1.5.2
+	github.com/tal-tech/go-zero v1.1.10
+	google.golang.org/grpc v1.40.0
+	google.golang.org/protobuf v1.27.1
+)

+ 14 - 0
rpc/etc/jyorder.yaml

@@ -0,0 +1,14 @@
+Name: jyorder.rpc
+ListenOn: 127.0.0.1:8080
+Etcd:
+  Hosts:
+  - 127.0.0.1:2379
+  Key: jyorder.rpc
+DataSource: root:root@tcp(127.0.0.1:3306)/jianyu?charset=utf8mb4&parseTime=true&loc=Local
+FileSystemConf:
+  Etcd:
+    Hosts:
+      - 127.0.0.1:2379
+    Key: jyorder.rpc
+CalleeId: jyorder.rpc
+Node: 1

+ 13 - 0
rpc/internal/config/config.go

@@ -0,0 +1,13 @@
+package config
+
+import "github.com/tal-tech/go-zero/zrpc"
+
+type Config struct {
+	zrpc.RpcServerConf
+	DataSource     string // 手动代码
+	Node           int    // 节点
+	CalleeId       string // 服务名字
+	FileSystemConf zrpc.RpcClientConf
+}
+
+var  ConfigJson Config

+ 36 - 0
rpc/internal/logic/createorderlogic.go

@@ -0,0 +1,36 @@
+package logic
+
+import (
+	"app.yhyue.com/moapp/jyOrder/rpc/internal/svc"
+	"app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
+	"app.yhyue.com/moapp/jyOrder/service"
+	"context"
+
+	"github.com/tal-tech/go-zero/core/logx"
+)
+
+var orderService = &service.OrderService{}
+
+type CreateOrderLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewCreateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrderLogic {
+	return &CreateOrderLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *CreateOrderLogic) CreateOrder(in *jyOrder.Request) (*jyOrder.Response, error) {
+	// todo: add your logic here and delete this line
+	result := &jyOrder.Response{}
+	code,msg,data := orderService.CreateOrder(in)
+	result.Code = code
+	result.Message = msg
+	result.Data = data
+	return result, nil
+}

+ 27 - 0
rpc/internal/server/jyorderserver.go

@@ -0,0 +1,27 @@
+// Code generated by goctl. DO NOT EDIT!
+// Source: jyOrder.proto
+
+package server
+
+import (
+	"context"
+
+	"app.yhyue.com/moapp/jyOrder/rpc/internal/logic"
+	"app.yhyue.com/moapp/jyOrder/rpc/internal/svc"
+	"app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
+)
+
+type JyOrderServer struct {
+	svcCtx *svc.ServiceContext
+}
+
+func NewJyOrderServer(svcCtx *svc.ServiceContext) *JyOrderServer {
+	return &JyOrderServer{
+		svcCtx: svcCtx,
+	}
+}
+
+func (s *JyOrderServer) CreateOrder(ctx context.Context, in *jyOrder.Request) (*jyOrder.Response, error) {
+	l := logic.NewCreateOrderLogic(ctx, s.svcCtx)
+	return l.CreateOrder(in)
+}

+ 13 - 0
rpc/internal/svc/servicecontext.go

@@ -0,0 +1,13 @@
+package svc
+
+import "app.yhyue.com/moapp/jyOrder/rpc/internal/config"
+
+type ServiceContext struct {
+	Config config.Config
+}
+
+func NewServiceContext(c config.Config) *ServiceContext {
+	return &ServiceContext{
+		Config: c,
+	}
+}

+ 67 - 0
rpc/jyOrder.proto

@@ -0,0 +1,67 @@
+syntax = "proto3";
+
+package jyOrder;
+
+message Request {
+  int64  pay_money = 1;
+  int64  order_money = 2;
+  int64  user_nickname = 3;
+  string pay_time = 4;
+  int64  order_status = 5;
+  string create_time = 6;
+  string user_openid = 7;
+  int64  service_status = 8;
+  string service_time = 9;
+  string filter = 10;
+  string prepay_id = 11;
+  string code_url = 12;
+  string out_trade_no = 13;
+  string filter_keys = 14;
+  string filter_publishtime = 15;
+  int64  data_count = 16;
+  string user_mail = 17;
+  string data_spec = 18;
+  int64  original_price = 19;
+  string order_code = 20;
+  string prepay_time = 21;
+  string product_type = 22;
+  string filter_id = 23;
+  string pay_way = 24;
+  string user_phone = 25;
+  int64  applybill_status = 26;
+  string download_url = 27;
+  int64  applybill_type = 28;
+  string applybill_taxnum = 29;
+  int64  remind_status = 30;
+  string applybill_company = 31;
+  string user_id = 32;
+  string vip_starttime = 33;
+  string vip_endtime = 34;
+  int64  vip_type = 35;
+  int64  course_status = 36;
+  string apply_refund_name = 37;
+  string apply_refund_reason = 38;
+  int64  apply_refund_time = 39;
+  int64  del_status = 40;
+  string del_time = 41;
+  string dis_word = 42;
+  int64  discount_price = 43;
+  string d_relation_id = 44;
+  int64  return_status = 45;
+  int64  refund_status = 46;
+  int64  is_backstage_order = 47;
+  string salesperson = 48;
+  string company_name = 49;
+  int64  billingMode = 50;
+}
+
+message Response {
+  int64     code =1;            //响应代码
+  string    message=2;          //响应消息
+  int64     data =3;            //返回数据
+}
+
+service JyOrder {
+  rpc CreateOrder(Request) returns(Response);
+}
+

+ 815 - 0
rpc/jyOrder/jyOrder.pb.go

@@ -0,0 +1,815 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// 	protoc-gen-go v1.25.0
+// 	protoc        v3.15.3
+// source: jyOrder.proto
+
+package jyOrder
+
+import (
+	context "context"
+	proto "github.com/golang/protobuf/proto"
+	grpc "google.golang.org/grpc"
+	codes "google.golang.org/grpc/codes"
+	status "google.golang.org/grpc/status"
+	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+	reflect "reflect"
+	sync "sync"
+)
+
+const (
+	// Verify that this generated code is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+	// Verify that runtime/protoimpl is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// This is a compile-time assertion that a sufficiently up-to-date version
+// of the legacy proto package is being used.
+const _ = proto.ProtoPackageIsVersion4
+
+type Request struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	PayMoney          int64  `protobuf:"varint,1,opt,name=pay_money,json=payMoney,proto3" json:"pay_money,omitempty"`
+	OrderMoney        int64  `protobuf:"varint,2,opt,name=order_money,json=orderMoney,proto3" json:"order_money,omitempty"`
+	UserNickname      int64  `protobuf:"varint,3,opt,name=user_nickname,json=userNickname,proto3" json:"user_nickname,omitempty"`
+	PayTime           string `protobuf:"bytes,4,opt,name=pay_time,json=payTime,proto3" json:"pay_time,omitempty"`
+	OrderStatus       int64  `protobuf:"varint,5,opt,name=order_status,json=orderStatus,proto3" json:"order_status,omitempty"`
+	CreateTime        string `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
+	UserOpenid        string `protobuf:"bytes,7,opt,name=user_openid,json=userOpenid,proto3" json:"user_openid,omitempty"`
+	ServiceStatus     int64  `protobuf:"varint,8,opt,name=service_status,json=serviceStatus,proto3" json:"service_status,omitempty"`
+	ServiceTime       string `protobuf:"bytes,9,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"`
+	Filter            string `protobuf:"bytes,10,opt,name=filter,proto3" json:"filter,omitempty"`
+	PrepayId          string `protobuf:"bytes,11,opt,name=prepay_id,json=prepayId,proto3" json:"prepay_id,omitempty"`
+	CodeUrl           string `protobuf:"bytes,12,opt,name=code_url,json=codeUrl,proto3" json:"code_url,omitempty"`
+	OutTradeNo        string `protobuf:"bytes,13,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"`
+	FilterKeys        string `protobuf:"bytes,14,opt,name=filter_keys,json=filterKeys,proto3" json:"filter_keys,omitempty"`
+	FilterPublishtime string `protobuf:"bytes,15,opt,name=filter_publishtime,json=filterPublishtime,proto3" json:"filter_publishtime,omitempty"`
+	DataCount         int64  `protobuf:"varint,16,opt,name=data_count,json=dataCount,proto3" json:"data_count,omitempty"`
+	UserMail          string `protobuf:"bytes,17,opt,name=user_mail,json=userMail,proto3" json:"user_mail,omitempty"`
+	DataSpec          string `protobuf:"bytes,18,opt,name=data_spec,json=dataSpec,proto3" json:"data_spec,omitempty"`
+	OriginalPrice     int64  `protobuf:"varint,19,opt,name=original_price,json=originalPrice,proto3" json:"original_price,omitempty"`
+	OrderCode         string `protobuf:"bytes,20,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"`
+	PrepayTime        string `protobuf:"bytes,21,opt,name=prepay_time,json=prepayTime,proto3" json:"prepay_time,omitempty"`
+	ProductType       string `protobuf:"bytes,22,opt,name=product_type,json=productType,proto3" json:"product_type,omitempty"`
+	FilterId          string `protobuf:"bytes,23,opt,name=filter_id,json=filterId,proto3" json:"filter_id,omitempty"`
+	PayWay            string `protobuf:"bytes,24,opt,name=pay_way,json=payWay,proto3" json:"pay_way,omitempty"`
+	UserPhone         string `protobuf:"bytes,25,opt,name=user_phone,json=userPhone,proto3" json:"user_phone,omitempty"`
+	ApplybillStatus   int64  `protobuf:"varint,26,opt,name=applybill_status,json=applybillStatus,proto3" json:"applybill_status,omitempty"`
+	DownloadUrl       string `protobuf:"bytes,27,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"`
+	ApplybillType     int64  `protobuf:"varint,28,opt,name=applybill_type,json=applybillType,proto3" json:"applybill_type,omitempty"`
+	ApplybillTaxnum   string `protobuf:"bytes,29,opt,name=applybill_taxnum,json=applybillTaxnum,proto3" json:"applybill_taxnum,omitempty"`
+	RemindStatus      int64  `protobuf:"varint,30,opt,name=remind_status,json=remindStatus,proto3" json:"remind_status,omitempty"`
+	ApplybillCompany  string `protobuf:"bytes,31,opt,name=applybill_company,json=applybillCompany,proto3" json:"applybill_company,omitempty"`
+	UserId            string `protobuf:"bytes,32,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+	VipStarttime      string `protobuf:"bytes,33,opt,name=vip_starttime,json=vipStarttime,proto3" json:"vip_starttime,omitempty"`
+	VipEndtime        string `protobuf:"bytes,34,opt,name=vip_endtime,json=vipEndtime,proto3" json:"vip_endtime,omitempty"`
+	VipType           int64  `protobuf:"varint,35,opt,name=vip_type,json=vipType,proto3" json:"vip_type,omitempty"`
+	CourseStatus      int64  `protobuf:"varint,36,opt,name=course_status,json=courseStatus,proto3" json:"course_status,omitempty"`
+	ApplyRefundName   string `protobuf:"bytes,37,opt,name=apply_refund_name,json=applyRefundName,proto3" json:"apply_refund_name,omitempty"`
+	ApplyRefundReason string `protobuf:"bytes,38,opt,name=apply_refund_reason,json=applyRefundReason,proto3" json:"apply_refund_reason,omitempty"`
+	ApplyRefundTime   int64  `protobuf:"varint,39,opt,name=apply_refund_time,json=applyRefundTime,proto3" json:"apply_refund_time,omitempty"`
+	DelStatus         int64  `protobuf:"varint,40,opt,name=del_status,json=delStatus,proto3" json:"del_status,omitempty"`
+	DelTime           string `protobuf:"bytes,41,opt,name=del_time,json=delTime,proto3" json:"del_time,omitempty"`
+	DisWord           string `protobuf:"bytes,42,opt,name=dis_word,json=disWord,proto3" json:"dis_word,omitempty"`
+	DiscountPrice     int64  `protobuf:"varint,43,opt,name=discount_price,json=discountPrice,proto3" json:"discount_price,omitempty"`
+	DRelationId       string `protobuf:"bytes,44,opt,name=d_relation_id,json=dRelationId,proto3" json:"d_relation_id,omitempty"`
+	ReturnStatus      int64  `protobuf:"varint,45,opt,name=return_status,json=returnStatus,proto3" json:"return_status,omitempty"`
+	RefundStatus      int64  `protobuf:"varint,46,opt,name=refund_status,json=refundStatus,proto3" json:"refund_status,omitempty"`
+	IsBackstageOrder  int64  `protobuf:"varint,47,opt,name=is_backstage_order,json=isBackstageOrder,proto3" json:"is_backstage_order,omitempty"`
+	Salesperson       string `protobuf:"bytes,48,opt,name=salesperson,proto3" json:"salesperson,omitempty"`
+	CompanyName       string `protobuf:"bytes,49,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"`
+	BillingMode       int64  `protobuf:"varint,50,opt,name=billingMode,proto3" json:"billingMode,omitempty"`
+}
+
+func (x *Request) Reset() {
+	*x = Request{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_jyOrder_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *Request) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Request) ProtoMessage() {}
+
+func (x *Request) ProtoReflect() protoreflect.Message {
+	mi := &file_jyOrder_proto_msgTypes[0]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use Request.ProtoReflect.Descriptor instead.
+func (*Request) Descriptor() ([]byte, []int) {
+	return file_jyOrder_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Request) GetPayMoney() int64 {
+	if x != nil {
+		return x.PayMoney
+	}
+	return 0
+}
+
+func (x *Request) GetOrderMoney() int64 {
+	if x != nil {
+		return x.OrderMoney
+	}
+	return 0
+}
+
+func (x *Request) GetUserNickname() int64 {
+	if x != nil {
+		return x.UserNickname
+	}
+	return 0
+}
+
+func (x *Request) GetPayTime() string {
+	if x != nil {
+		return x.PayTime
+	}
+	return ""
+}
+
+func (x *Request) GetOrderStatus() int64 {
+	if x != nil {
+		return x.OrderStatus
+	}
+	return 0
+}
+
+func (x *Request) GetCreateTime() string {
+	if x != nil {
+		return x.CreateTime
+	}
+	return ""
+}
+
+func (x *Request) GetUserOpenid() string {
+	if x != nil {
+		return x.UserOpenid
+	}
+	return ""
+}
+
+func (x *Request) GetServiceStatus() int64 {
+	if x != nil {
+		return x.ServiceStatus
+	}
+	return 0
+}
+
+func (x *Request) GetServiceTime() string {
+	if x != nil {
+		return x.ServiceTime
+	}
+	return ""
+}
+
+func (x *Request) GetFilter() string {
+	if x != nil {
+		return x.Filter
+	}
+	return ""
+}
+
+func (x *Request) GetPrepayId() string {
+	if x != nil {
+		return x.PrepayId
+	}
+	return ""
+}
+
+func (x *Request) GetCodeUrl() string {
+	if x != nil {
+		return x.CodeUrl
+	}
+	return ""
+}
+
+func (x *Request) GetOutTradeNo() string {
+	if x != nil {
+		return x.OutTradeNo
+	}
+	return ""
+}
+
+func (x *Request) GetFilterKeys() string {
+	if x != nil {
+		return x.FilterKeys
+	}
+	return ""
+}
+
+func (x *Request) GetFilterPublishtime() string {
+	if x != nil {
+		return x.FilterPublishtime
+	}
+	return ""
+}
+
+func (x *Request) GetDataCount() int64 {
+	if x != nil {
+		return x.DataCount
+	}
+	return 0
+}
+
+func (x *Request) GetUserMail() string {
+	if x != nil {
+		return x.UserMail
+	}
+	return ""
+}
+
+func (x *Request) GetDataSpec() string {
+	if x != nil {
+		return x.DataSpec
+	}
+	return ""
+}
+
+func (x *Request) GetOriginalPrice() int64 {
+	if x != nil {
+		return x.OriginalPrice
+	}
+	return 0
+}
+
+func (x *Request) GetOrderCode() string {
+	if x != nil {
+		return x.OrderCode
+	}
+	return ""
+}
+
+func (x *Request) GetPrepayTime() string {
+	if x != nil {
+		return x.PrepayTime
+	}
+	return ""
+}
+
+func (x *Request) GetProductType() string {
+	if x != nil {
+		return x.ProductType
+	}
+	return ""
+}
+
+func (x *Request) GetFilterId() string {
+	if x != nil {
+		return x.FilterId
+	}
+	return ""
+}
+
+func (x *Request) GetPayWay() string {
+	if x != nil {
+		return x.PayWay
+	}
+	return ""
+}
+
+func (x *Request) GetUserPhone() string {
+	if x != nil {
+		return x.UserPhone
+	}
+	return ""
+}
+
+func (x *Request) GetApplybillStatus() int64 {
+	if x != nil {
+		return x.ApplybillStatus
+	}
+	return 0
+}
+
+func (x *Request) GetDownloadUrl() string {
+	if x != nil {
+		return x.DownloadUrl
+	}
+	return ""
+}
+
+func (x *Request) GetApplybillType() int64 {
+	if x != nil {
+		return x.ApplybillType
+	}
+	return 0
+}
+
+func (x *Request) GetApplybillTaxnum() string {
+	if x != nil {
+		return x.ApplybillTaxnum
+	}
+	return ""
+}
+
+func (x *Request) GetRemindStatus() int64 {
+	if x != nil {
+		return x.RemindStatus
+	}
+	return 0
+}
+
+func (x *Request) GetApplybillCompany() string {
+	if x != nil {
+		return x.ApplybillCompany
+	}
+	return ""
+}
+
+func (x *Request) GetUserId() string {
+	if x != nil {
+		return x.UserId
+	}
+	return ""
+}
+
+func (x *Request) GetVipStarttime() string {
+	if x != nil {
+		return x.VipStarttime
+	}
+	return ""
+}
+
+func (x *Request) GetVipEndtime() string {
+	if x != nil {
+		return x.VipEndtime
+	}
+	return ""
+}
+
+func (x *Request) GetVipType() int64 {
+	if x != nil {
+		return x.VipType
+	}
+	return 0
+}
+
+func (x *Request) GetCourseStatus() int64 {
+	if x != nil {
+		return x.CourseStatus
+	}
+	return 0
+}
+
+func (x *Request) GetApplyRefundName() string {
+	if x != nil {
+		return x.ApplyRefundName
+	}
+	return ""
+}
+
+func (x *Request) GetApplyRefundReason() string {
+	if x != nil {
+		return x.ApplyRefundReason
+	}
+	return ""
+}
+
+func (x *Request) GetApplyRefundTime() int64 {
+	if x != nil {
+		return x.ApplyRefundTime
+	}
+	return 0
+}
+
+func (x *Request) GetDelStatus() int64 {
+	if x != nil {
+		return x.DelStatus
+	}
+	return 0
+}
+
+func (x *Request) GetDelTime() string {
+	if x != nil {
+		return x.DelTime
+	}
+	return ""
+}
+
+func (x *Request) GetDisWord() string {
+	if x != nil {
+		return x.DisWord
+	}
+	return ""
+}
+
+func (x *Request) GetDiscountPrice() int64 {
+	if x != nil {
+		return x.DiscountPrice
+	}
+	return 0
+}
+
+func (x *Request) GetDRelationId() string {
+	if x != nil {
+		return x.DRelationId
+	}
+	return ""
+}
+
+func (x *Request) GetReturnStatus() int64 {
+	if x != nil {
+		return x.ReturnStatus
+	}
+	return 0
+}
+
+func (x *Request) GetRefundStatus() int64 {
+	if x != nil {
+		return x.RefundStatus
+	}
+	return 0
+}
+
+func (x *Request) GetIsBackstageOrder() int64 {
+	if x != nil {
+		return x.IsBackstageOrder
+	}
+	return 0
+}
+
+func (x *Request) GetSalesperson() string {
+	if x != nil {
+		return x.Salesperson
+	}
+	return ""
+}
+
+func (x *Request) GetCompanyName() string {
+	if x != nil {
+		return x.CompanyName
+	}
+	return ""
+}
+
+func (x *Request) GetBillingMode() int64 {
+	if x != nil {
+		return x.BillingMode
+	}
+	return 0
+}
+
+type Response struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Code    int64  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      //响应代码
+	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
+	Data    int64  `protobuf:"varint,3,opt,name=data,proto3" json:"data,omitempty"`      //返回数据
+}
+
+func (x *Response) Reset() {
+	*x = Response{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_jyOrder_proto_msgTypes[1]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *Response) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Response) ProtoMessage() {}
+
+func (x *Response) ProtoReflect() protoreflect.Message {
+	mi := &file_jyOrder_proto_msgTypes[1]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use Response.ProtoReflect.Descriptor instead.
+func (*Response) Descriptor() ([]byte, []int) {
+	return file_jyOrder_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *Response) GetCode() int64 {
+	if x != nil {
+		return x.Code
+	}
+	return 0
+}
+
+func (x *Response) GetMessage() string {
+	if x != nil {
+		return x.Message
+	}
+	return ""
+}
+
+func (x *Response) GetData() int64 {
+	if x != nil {
+		return x.Data
+	}
+	return 0
+}
+
+var File_jyOrder_proto protoreflect.FileDescriptor
+
+var file_jyOrder_proto_rawDesc = []byte{
+	0x0a, 0x0d, 0x6a, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+	0x07, 0x6a, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xc8, 0x0d, 0x0a, 0x07, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x79, 0x5f, 0x6d, 0x6f, 0x6e, 0x65,
+	0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x79, 0x4d, 0x6f, 0x6e, 0x65,
+	0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x65, 0x79,
+	0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x6e,
+	0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x6e,
+	0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x4e,
+	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x79, 0x5f, 0x74,
+	0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x54, 0x69,
+	0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74,
+	0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x53,
+	0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
+	0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,
+	0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6f,
+	0x70, 0x65, 0x6e, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65,
+	0x72, 0x4f, 0x70, 0x65, 0x6e, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69,
+	0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
+	0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21,
+	0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x69, 0x6d,
+	0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x72, 0x65,
+	0x70, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72,
+	0x65, 0x70, 0x61, 0x79, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x75,
+	0x72, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x64, 0x65, 0x55, 0x72,
+	0x6c, 0x12, 0x20, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x6e,
+	0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x54, 0x72, 0x61, 0x64,
+	0x65, 0x4e, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6b, 0x65,
+	0x79, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
+	0x4b, 0x65, 0x79, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x70,
+	0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x11, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x74,
+	0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x75, 0x6e,
+	0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x75,
+	0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x69, 0x6c, 0x18,
+	0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x12,
+	0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x12, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x53, 0x70, 0x65, 0x63, 0x12, 0x25, 0x0a, 0x0e,
+	0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x13,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x72,
+	0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x64,
+	0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x6f,
+	0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d,
+	0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x54,
+	0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x74,
+	0x79, 0x70, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75,
+	0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
+	0x5f, 0x69, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x74, 0x65,
+	0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x5f, 0x77, 0x61, 0x79, 0x18, 0x18,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x79, 0x57, 0x61, 0x79, 0x12, 0x1d, 0x0a, 0x0a,
+	0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x61,
+	0x70, 0x70, 0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
+	0x1a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c,
+	0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
+	0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f,
+	0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x70, 0x70,
+	0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28,
+	0x03, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65,
+	0x12, 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c, 0x5f, 0x74, 0x61,
+	0x78, 0x6e, 0x75, 0x6d, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c,
+	0x79, 0x62, 0x69, 0x6c, 0x6c, 0x54, 0x61, 0x78, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x72,
+	0x65, 0x6d, 0x69, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x1e, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
+	0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c, 0x5f, 0x63, 0x6f,
+	0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x70, 0x70,
+	0x6c, 0x79, 0x62, 0x69, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x17, 0x0a,
+	0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+	0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x69, 0x70, 0x5f, 0x73, 0x74,
+	0x61, 0x72, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76,
+	0x69, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76,
+	0x69, 0x70, 0x5f, 0x65, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x22, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x0a, 0x76, 0x69, 0x70, 0x45, 0x6e, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08,
+	0x76, 0x69, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x23, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
+	0x76, 0x69, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x72, 0x73,
+	0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x24, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
+	0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x11,
+	0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x6e, 0x61, 0x6d,
+	0x65, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65,
+	0x66, 0x75, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, 0x70, 0x6c,
+	0x79, 0x5f, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18,
+	0x26, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x66, 0x75,
+	0x6e, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x6c,
+	0x79, 0x5f, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x27, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
+	0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74,
+	0x75, 0x73, 0x18, 0x28, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x53, 0x74, 0x61,
+	0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
+	0x29, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19,
+	0x0a, 0x08, 0x64, 0x69, 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x07, 0x64, 0x69, 0x73, 0x57, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x73,
+	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x2b, 0x20, 0x01, 0x28,
+	0x03, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65,
+	0x12, 0x22, 0x0a, 0x0d, 0x64, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
+	0x64, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69,
+	0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x73,
+	0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x74,
+	0x75, 0x72, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66,
+	0x75, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x2e, 0x20, 0x01, 0x28, 0x03,
+	0x52, 0x0c, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c,
+	0x0a, 0x12, 0x69, 0x73, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x6f,
+	0x72, 0x64, 0x65, 0x72, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x73, 0x42, 0x61,
+	0x63, 0x6b, 0x73, 0x74, 0x61, 0x67, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b,
+	0x73, 0x61, 0x6c, 0x65, 0x73, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x30, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x0b, 0x73, 0x61, 0x6c, 0x65, 0x73, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x21,
+	0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x31,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4e, 0x61, 0x6d,
+	0x65, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65,
+	0x18, 0x32, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x4d,
+	0x6f, 0x64, 0x65, 0x22, 0x4c, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
+	0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63,
+	0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a,
+	0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x64, 0x61, 0x74,
+	0x61, 0x32, 0x3d, 0x0a, 0x07, 0x4a, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x0b,
+	0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x10, 0x2e, 0x6a, 0x79,
+	0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e,
+	0x6a, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+	file_jyOrder_proto_rawDescOnce sync.Once
+	file_jyOrder_proto_rawDescData = file_jyOrder_proto_rawDesc
+)
+
+func file_jyOrder_proto_rawDescGZIP() []byte {
+	file_jyOrder_proto_rawDescOnce.Do(func() {
+		file_jyOrder_proto_rawDescData = protoimpl.X.CompressGZIP(file_jyOrder_proto_rawDescData)
+	})
+	return file_jyOrder_proto_rawDescData
+}
+
+var file_jyOrder_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_jyOrder_proto_goTypes = []interface{}{
+	(*Request)(nil),  // 0: jyOrder.Request
+	(*Response)(nil), // 1: jyOrder.Response
+}
+var file_jyOrder_proto_depIdxs = []int32{
+	0, // 0: jyOrder.JyOrder.CreateOrder:input_type -> jyOrder.Request
+	1, // 1: jyOrder.JyOrder.CreateOrder:output_type -> jyOrder.Response
+	1, // [1:2] is the sub-list for method output_type
+	0, // [0:1] is the sub-list for method input_type
+	0, // [0:0] is the sub-list for extension type_name
+	0, // [0:0] is the sub-list for extension extendee
+	0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_jyOrder_proto_init() }
+func file_jyOrder_proto_init() {
+	if File_jyOrder_proto != nil {
+		return
+	}
+	if !protoimpl.UnsafeEnabled {
+		file_jyOrder_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*Request); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_jyOrder_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*Response); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+	}
+	type x struct{}
+	out := protoimpl.TypeBuilder{
+		File: protoimpl.DescBuilder{
+			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+			RawDescriptor: file_jyOrder_proto_rawDesc,
+			NumEnums:      0,
+			NumMessages:   2,
+			NumExtensions: 0,
+			NumServices:   1,
+		},
+		GoTypes:           file_jyOrder_proto_goTypes,
+		DependencyIndexes: file_jyOrder_proto_depIdxs,
+		MessageInfos:      file_jyOrder_proto_msgTypes,
+	}.Build()
+	File_jyOrder_proto = out.File
+	file_jyOrder_proto_rawDesc = nil
+	file_jyOrder_proto_goTypes = nil
+	file_jyOrder_proto_depIdxs = nil
+}
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ context.Context
+var _ grpc.ClientConnInterface
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+const _ = grpc.SupportPackageIsVersion6
+
+// JyOrderClient is the client API for JyOrder service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
+type JyOrderClient interface {
+	CreateOrder(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
+}
+
+type jyOrderClient struct {
+	cc grpc.ClientConnInterface
+}
+
+func NewJyOrderClient(cc grpc.ClientConnInterface) JyOrderClient {
+	return &jyOrderClient{cc}
+}
+
+func (c *jyOrderClient) CreateOrder(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
+	out := new(Response)
+	err := c.cc.Invoke(ctx, "/jyOrder.JyOrder/CreateOrder", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+// JyOrderServer is the server API for JyOrder service.
+type JyOrderServer interface {
+	CreateOrder(context.Context, *Request) (*Response, error)
+}
+
+// UnimplementedJyOrderServer can be embedded to have forward compatible implementations.
+type UnimplementedJyOrderServer struct {
+}
+
+func (*UnimplementedJyOrderServer) CreateOrder(context.Context, *Request) (*Response, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method CreateOrder not implemented")
+}
+
+func RegisterJyOrderServer(s *grpc.Server, srv JyOrderServer) {
+	s.RegisterService(&_JyOrder_serviceDesc, srv)
+}
+
+func _JyOrder_CreateOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(Request)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(JyOrderServer).CreateOrder(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/jyOrder.JyOrder/CreateOrder",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(JyOrderServer).CreateOrder(ctx, req.(*Request))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+var _JyOrder_serviceDesc = grpc.ServiceDesc{
+	ServiceName: "jyOrder.JyOrder",
+	HandlerType: (*JyOrderServer)(nil),
+	Methods: []grpc.MethodDesc{
+		{
+			MethodName: "CreateOrder",
+			Handler:    _JyOrder_CreateOrder_Handler,
+		},
+	},
+	Streams:  []grpc.StreamDesc{},
+	Metadata: "jyOrder.proto",
+}

+ 50 - 0
rpc/jyorder.go

@@ -0,0 +1,50 @@
+package main
+
+import (
+	"app.yhyue.com/moapp/jyOrder/entity"
+	"flag"
+	"fmt"
+	"github.com/go-xorm/xorm"
+	"log"
+
+	"app.yhyue.com/moapp/jyOrder/rpc/internal/config"
+	"app.yhyue.com/moapp/jyOrder/rpc/internal/server"
+	"app.yhyue.com/moapp/jyOrder/rpc/internal/svc"
+	"app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
+	_ "github.com/go-sql-driver/mysql"
+
+	"github.com/tal-tech/go-zero/core/conf"
+	"github.com/tal-tech/go-zero/zrpc"
+	"google.golang.org/grpc"
+)
+
+var configFile = flag.String("f", "etc/jyorder.yaml", "the config file")
+
+func main() {
+	flag.Parse()
+
+	conf.MustLoad(*configFile, &config.ConfigJson)
+	ctx := svc.NewServiceContext(config.ConfigJson)
+	srv := server.NewJyOrderServer(ctx)
+
+	s := zrpc.MustNewServer(config.ConfigJson.RpcServerConf, func(grpcServer *grpc.Server) {
+		jyOrder.RegisterJyOrderServer(grpcServer, srv)
+	})
+	defer s.Stop()
+
+	fmt.Printf("Starting rpc server at %s...\n", config.ConfigJson.ListenOn)
+	s.Start()
+}
+
+//创建orm引擎
+func init() {
+	conf.MustLoad(*configFile, &config.ConfigJson)
+	var err error
+	log.Println(config.ConfigJson.DataSource)
+	entity.Engine, err = xorm.NewEngine("mysql", config.ConfigJson.DataSource)
+	//entity.Engine.ShowSQL(true)
+	if err != nil {
+		log.Fatal("数据库连接失败:", err)
+	}
+	fmt.Println(config.ConfigJson.DataSource+"链接成功")
+}

+ 38 - 0
rpc/jyorderclient/jyorder.go

@@ -0,0 +1,38 @@
+// Code generated by goctl. DO NOT EDIT!
+// Source: jyOrder.proto
+
+//go:generate mockgen -destination ./jyorder_mock.go -package jyorderclient -source $GOFILE
+
+package jyorderclient
+
+import (
+	"context"
+
+	"app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
+
+	"github.com/tal-tech/go-zero/zrpc"
+)
+
+type (
+	Request  = jyOrder.Request
+	Response = jyOrder.Response
+
+	JyOrder interface {
+		CreateOrder(ctx context.Context, in *Request) (*Response, error)
+	}
+
+	defaultJyOrder struct {
+		cli zrpc.Client
+	}
+)
+
+func NewJyOrder(cli zrpc.Client) JyOrder {
+	return &defaultJyOrder{
+		cli: cli,
+	}
+}
+
+func (m *defaultJyOrder) CreateOrder(ctx context.Context, in *Request) (*Response, error) {
+	client := jyOrder.NewJyOrderClient(m.cli.Conn())
+	return client.CreateOrder(ctx, in)
+}

+ 68 - 0
service/orderService.go

@@ -0,0 +1,68 @@
+package service
+
+import (
+	"app.yhyue.com/moapp/jyOrder/entity"
+	"app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
+	"log"
+)
+
+type OrderService struct{}
+
+func (s OrderService) CreateOrder(in *jyOrder.Request) (int64, string, int64) {
+	orm := entity.Engine.NewSession()
+	defer orm.Close()
+	err0 := orm.Begin()
+	if err0 != nil {
+		log.Panicln("事务开启失败:", err0)
+	}
+	order := &entity.Order{}
+	order.Pay_money = in.PayMoney
+	order.Order_money = in.OrderMoney
+	order.Pay_time = in.PayTime
+	order.Order_status = in.OrderStatus
+	order.Create_time = in.CreateTime
+	order.User_openid = in.UserOpenid
+	order.Service_status = in.ServiceStatus
+	order.Filter = in.Filter
+	order.Prepay_id = in.PrepayId
+	order.Code_url = in.CodeUrl
+	order.Out_trade_no = in.OutTradeNo
+	order.Filter_keys = in.FilterKeys
+	order.Filter_publishtime = in.FilterPublishtime
+	order.Data_count = in.DataCount
+	order.User_mail = in.UserMail
+	order.Data_spec = in.DataSpec
+	order.Original_price = in.OriginalPrice
+	order.Order_code = in.OrderCode
+	order.Prepay_time = in.PrepayTime
+	order.Product_type = in.ProductType
+	order.Filter_id = in.FilterId
+	order.Pay_way = in.PayWay
+	order.User_phone = in.UserPhone
+	order.Applybill_status = in.ApplybillStatus
+	order.Download_url = in.DownloadUrl
+	order.Applybill_type = in.ApplybillType
+	order.Applybill_taxnum = in.ApplybillTaxnum
+	order.Applybill_company = in.ApplybillCompany
+	order.User_id = in.UserId
+	order.Vip_starttime = in.VipStarttime
+	order.Vip_endtime = in.VipEndtime
+	order.Course_status = in.CourseStatus
+	order.Dis_word = in.DisWord
+	order.Discount_price = in.DiscountPrice
+	order.D_relation_id = in.DRelationId
+	order.Return_status = in.ReturnStatus
+	order.Refund_status = in.RefundStatus
+	order.Is_backstage_order = in.IsBackstageOrder
+	order.Salesperson = in.Salesperson
+	order.Company_name = in.CompanyName
+	order.BillingMode = in.BillingMode
+	numb, err := orm.Table("dataexport_order").Insert(order)
+	if err != nil || numb == int64(0) {
+		log.Panicln("创建订单失败:", err)
+		orm.Rollback()
+		return entity.ErrorCode, "创建订单失败", entity.ErrorCode
+	}
+	orm.Commit()
+	return entity.SuccessCode,"创建订单成功",order.Id
+}