Browse Source

feat:更新

wangshan 2 years ago
parent
commit
19f7171ae5

+ 30 - 32
jyBXCore/api/bxcore.api

@@ -7,8 +7,6 @@ info (
 	email: "wangshan@topnet.net.cn"
 )
 
-import "participate/*.api"
-
 type (
 	searchReq {
 		UserType        string `path:"userType,optional"`
@@ -95,55 +93,55 @@ type (
 	}
 	// 参标操作记录请求参数
 	participateRecordsReq {
-		Sid string `json:"sid"` // 标讯id
-		page int64 `json:"page,default=0"`// 页码
-		pageSize int64 `json:"pageSize,default=100"`// 每页条数
+		Sid      string `json:"sid"`                  // 标讯id
+		Page     int64  `json:"page,default=0"`       // 页码
+		PageSize int64  `json:"pageSize,default=100"` // 每页条数
 		baseParam
 	}
 	// 当前部门/企业下参标人员信息
-	participatePersonsReq{
+	participatePersonsReq {
 		baseParam
 	}
 	//投标状态更新:投标类型-投标项目阶段
-	BidTypeReq{
-		name string `json:"name,optional"`
-		content []string `json:"content,optional"`
+	BidTypeReq {
+		Name    string   `json:"name,optional"`
+		Content []string `json:"content,optional"`
 	}
 	//消息提醒设置:
-	RemindRuleReq{
-		bidState int `json:"bidState,optional"`//投标规则类型;0:全部;1:直接投标;2:渠道投标
-		remainder int `json:"remainder,optional"`//距离投标截止日期需要多久开始提醒 单位h
-		node int `json:"node,optional"`//那个节点进行消息提醒;和投标项目阶段绑定
+	RemindRuleReq {
+		BidState  int `json:"bidState,optional"`  //投标规则类型;0:全部;1:直接投标;2:渠道投标
+		Remainder int `json:"remainder,optional"` //距离投标截止日期需要多久开始提醒 单位h
+		Node      int `json:"node,optional"`      //那个节点进行消息提醒;和投标项目阶段绑定
 	}
 	//参标设置信息接口
 	participateSetUpInfoReq {
 		baseParam
-		setAction string `json:"setAction,optional"`//默认空;U:更新
-		isAllow bool `json:"isAllow,optional"`//是否允许多人同时参标
-		bidType []BidTypeReq `json:"bidType,optional"`//投标类型自定义内容
-		remindRule []RemindRuleReq `json:"remindRule,optional"`//消息提醒
+		SetAction  string          `json:"setAction,optional"`  //默认空;U:更新
+		IsAllow    bool            `json:"isAllow,optional"`    //是否允许多人同时参标
+		BidType    []BidTypeReq    `json:"bidType,optional"`    //投标类型自定义内容
+		RemindRule []RemindRuleReq `json:"remindRule,optional"` //消息提醒
 	}
 	//用户参标、终止参标及划转接口开发
 	participateActionReq {
 		baseParam
-		bidId string `json:"bidId,optional"`//招标信息id ,已加密。多个,号隔开
-		entUserId string `json:"entUserId,optional"`//划转对象的企业用户id
-		isRetain bool `json:"isRetain,optional"`//是否保留原跟踪人
+		BidId     string `json:"bidId,optional"`     //招标信息id ,已加密。多个,号隔开
+		EntUserId string `json:"entUserId,optional"` //划转对象的企业用户id
+		IsRetain  bool   `json:"isRetain,optional"`  //是否保留原跟踪人
 	}
 	//我的参标项目列表|企业参标项目列表
-	participateListReq{
+	participateListReq {
 		baseParam
-		area string `json:"area,optional"` //省份
-		city string `json:"city,optional"` //城市
-		bidTime string `json:"bidTime,optional"`//招标日期:开始时间-结束时间
-		bidEndTime string `json:"bidEndTime,optional"`//投标截止日期:格式同上
-		bidOpenTime string `json:"bidOpenTime,optional"`//开标时间:格式同上
-		bidEndStatus int `json:"bidEndStatus,optional"`//投标截止状态:1:未截止;2:已截止;3:终止参标
-		bidOpenStatus int `json:"bidOpenStatus,optional"`//开标状态:1:已开标;2:未开标
-		keywords string `json:"keywords,optional"`//查询项目名称 关键词;多个空格隔开
-		entUserIds string `json:"entUserIds,optional"`//企业参标人企业用户id集合,多个,号隔开
-		pageSize int `json:"pageSize,default=10"`//每页数据量
-		pageNum int `json:"pageNum,default=0"`//当前页码
+		Area          string `json:"area,optional"`          //省份
+		City          string `json:"city,optional"`          //城市
+		BidTime       string `json:"bidTime,optional"`       //招标日期:开始时间-结束时间
+		BidEndTime    string `json:"bidEndTime,optional"`    //投标截止日期:格式同上
+		BidOpenTime   string `json:"bidOpenTime,optional"`   //开标时间:格式同上
+		BidEndStatus  int    `json:"bidEndStatus,optional"`  //投标截止状态:1:未截止;2:已截止;3:终止参标
+		BidOpenStatus int    `json:"bidOpenStatus,optional"` //开标状态:1:已开标;2:未开标
+		Keywords      string `json:"keywords,optional"`      //查询项目名称 关键词;多个空格隔开
+		EntUserIds    string `json:"entUserIds,optional"`    //企业参标人企业用户id集合,多个,号隔开
+		PageSize      int    `json:"pageSize,default=10"`    //每页数据量
+		PageNum       int    `json:"pageNum,default=0"`      //当前页码
 	}
 )
 service bxcore-api {

+ 30 - 0
jyBXCore/api/internal/handler/participateActionHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func participateActionHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateActionReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateActionLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateAction(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participateContentHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func ParticipateContentHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateContentReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateContentLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateContent(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participateInfoHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func ParticipateInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateInfoReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateInfoLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateInfo(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participateListHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func participateListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateActionReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateListLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateList(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participatePersonsHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func ParticipatePersonsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipatePersonsReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipatePersonsLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipatePersons(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participateRecordsHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func ParticipateRecordsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateRecordsReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateRecordsLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateRecords(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participateSetUpInfoHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func participateSetUpInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateSetUpInfoReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateSetUpInfoLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateSetUpInfo(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 30 - 0
jyBXCore/api/internal/handler/participateShowHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func participateShowHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ParticipateShowReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewParticipateShowLogic(r.Context(), svcCtx, r)
+		resp, err := l.ParticipateShow(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 45 - 0
jyBXCore/api/internal/handler/routes.go

@@ -22,6 +22,51 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Path:    "/jybx/core/:searchType/searchLimit",
 				Handler: limitSearchContentHandler(serverCtx),
 			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/show",
+				Handler: participateShowHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/info",
+				Handler: ParticipateInfoHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/updateBidStatus",
+				Handler: updateBidStatusHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/content",
+				Handler: ParticipateContentHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/records",
+				Handler: ParticipateRecordsHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/persons",
+				Handler: ParticipatePersonsHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/setUpInfo",
+				Handler: participateSetUpInfoHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/:ppAction",
+				Handler: participateActionHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/jybx/core/participate/:identity/list",
+				Handler: participateListHandler(serverCtx),
+			},
 		},
 	)
 }

+ 30 - 0
jyBXCore/api/internal/handler/updateBidStatusHandler.go

@@ -0,0 +1,30 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"jyBXCore/api/internal/logic"
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func updateBidStatusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.UpdateBidStatusReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewUpdateBidStatusLogic(r.Context(), svcCtx, r)
+		resp, err := l.UpdateBidStatus(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateActionLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateActionLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateActionLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateActionLogic {
+	return &ParticipateActionLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateActionLogic) ParticipateAction(req *types.ParticipateActionReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateContentLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateContentLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateContentLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateContentLogic {
+	return &ParticipateContentLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateContentLogic) ParticipateContent(req *types.ParticipateContentReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateInfoLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateInfoLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateInfoLogic {
+	return &ParticipateInfoLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateInfoLogic) ParticipateInfo(req *types.ParticipateInfoReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateListLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateListLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateListLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateListLogic {
+	return &ParticipateListLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateListLogic) ParticipateList(req *types.ParticipateActionReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participatePersonsLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipatePersonsLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipatePersonsLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipatePersonsLogic {
+	return &ParticipatePersonsLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipatePersonsLogic) ParticipatePersons(req *types.ParticipatePersonsReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateRecordsLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateRecordsLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateRecordsLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateRecordsLogic {
+	return &ParticipateRecordsLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateRecordsLogic) ParticipateRecords(req *types.ParticipateRecordsReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateSetUpInfoLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateSetUpInfoLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateSetUpInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateSetUpInfoLogic {
+	return &ParticipateSetUpInfoLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateSetUpInfoLogic) ParticipateSetUpInfo(req *types.ParticipateSetUpInfoReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/participateShowLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ParticipateShowLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewParticipateShowLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateShowLogic {
+	return &ParticipateShowLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *ParticipateShowLogic) ParticipateShow(req *types.ParticipateShowReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 32 - 0
jyBXCore/api/internal/logic/updateBidStatusLogic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"jyBXCore/api/internal/svc"
+	"jyBXCore/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type UpdateBidStatusLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewUpdateBidStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *UpdateBidStatusLogic {
+	return &UpdateBidStatusLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *UpdateBidStatusLogic) UpdateBidStatus(req *types.UpdateBidStatusReq) (resp *types.CommonResp, err error) {
+	// todo: add your logic here and delete this line
+
+	return
+}

+ 86 - 0
jyBXCore/api/internal/types/types.go

@@ -50,3 +50,89 @@ type SearchLimitReq struct {
 	Percentage int64  `json:"percentage,optional"` //付费用户占比
 	SearchType string `path:"searchType"`          //get|update|
 }
+
+type BaseParam struct {
+	EntId        int64 `header:"entId,optional"`     // 企业id
+	EntUserId    int64 `header:"entUserId,optional"` // 企业下用户id
+	PositionType int64 `header:"positionType"`       // 职位类型 0个人 1企业
+	PositionId   int64 `header:"positionId"`
+}
+
+type ParticipateShowReq struct {
+	Ids string `json:"ids"` // 标讯id 逗号分割
+	BaseParam
+}
+
+type ParticipateInfoReq struct {
+	Sid string `json:"sid"` // 标讯id
+	BaseParam
+}
+
+type UpdateBidStatusReq struct {
+	BidType       int64    `json:"bidType"`                // 投标类型 1-直接投标 2-渠道投标
+	BidStage      []string `json:"bidStage,optional"`      // 投标项目阶段 ["未报名","已报名"...]
+	IsWin         int64    `json:"isWin,optional"`         // 是否中标 0-未选择 1-是 2-否
+	ChannelName   string   `json:"channelName,optional"`   // 渠道名称
+	ChannelPerson string   `json:"channelPerson,optional"` // 联系人
+	ChannelPhone  string   `json:"channelPhone,optional"`  //联系电话
+	Winner        string   `json:"winner,optional"`        // 中标单位
+	Sid           string   `json:"sid"`                    // 标讯id
+	BaseParam
+}
+
+type ParticipateContentReq struct {
+	Sid string `json:"sid"` // 标讯id
+	BaseParam
+}
+
+type ParticipateRecordsReq struct {
+	Sid      string `json:"sid"`                  // 标讯id
+	Page     int64  `json:"page,default=0"`       // 页码
+	PageSize int64  `json:"pageSize,default=100"` // 每页条数
+	BaseParam
+}
+
+type ParticipatePersonsReq struct {
+	BaseParam
+}
+
+type BidTypeReq struct {
+	Name    string   `json:"name,optional"`
+	Content []string `json:"content,optional"`
+}
+
+type RemindRuleReq struct {
+	BidState  int `json:"bidState,optional"`  //投标规则类型;0:全部;1:直接投标;2:渠道投标
+	Remainder int `json:"remainder,optional"` //距离投标截止日期需要多久开始提醒 单位h
+	Node      int `json:"node,optional"`      //那个节点进行消息提醒;和投标项目阶段绑定
+}
+
+type ParticipateSetUpInfoReq struct {
+	BaseParam
+	SetAction  string          `json:"setAction,optional"`  //默认空;U:更新
+	IsAllow    bool            `json:"isAllow,optional"`    //是否允许多人同时参标
+	BidType    []BidTypeReq    `json:"bidType,optional"`    //投标类型自定义内容
+	RemindRule []RemindRuleReq `json:"remindRule,optional"` //消息提醒
+}
+
+type ParticipateActionReq struct {
+	BaseParam
+	BidId     string `json:"bidId,optional"`     //招标信息id ,已加密。多个,号隔开
+	EntUserId string `json:"entUserId,optional"` //划转对象的企业用户id
+	IsRetain  bool   `json:"isRetain,optional"`  //是否保留原跟踪人
+}
+
+type ParticipateListReq struct {
+	BaseParam
+	Area          string `json:"area,optional"`          //省份
+	City          string `json:"city,optional"`          //城市
+	BidTime       string `json:"bidTime,optional"`       //招标日期:开始时间-结束时间
+	BidEndTime    string `json:"bidEndTime,optional"`    //投标截止日期:格式同上
+	BidOpenTime   string `json:"bidOpenTime,optional"`   //开标时间:格式同上
+	BidEndStatus  int    `json:"bidEndStatus,optional"`  //投标截止状态:1:未截止;2:已截止;3:终止参标
+	BidOpenStatus int    `json:"bidOpenStatus,optional"` //开标状态:1:已开标;2:未开标
+	Keywords      string `json:"keywords,optional"`      //查询项目名称 关键词;多个空格隔开
+	EntUserIds    string `json:"entUserIds,optional"`    //企业参标人企业用户id集合,多个,号隔开
+	PageSize      int    `json:"pageSize,default=10"`    //每页数据量
+	PageNum       int    `json:"pageNum,default=0"`      //当前页码
+}