|
@@ -4,9 +4,27 @@ import (
|
|
|
. "api"
|
|
|
"bidcollection/entity"
|
|
|
"encoding/json"
|
|
|
+ "log"
|
|
|
qu "qfw/util"
|
|
|
)
|
|
|
|
|
|
+//招标信息是否被收藏
|
|
|
+func (this *ServiceStruct) IsCollAction() {
|
|
|
+ userId, _ := this.GetSession("userId").(string)
|
|
|
+ defer qu.Catch()
|
|
|
+ r := func() Result {
|
|
|
+ if this.Method() != "POST" {
|
|
|
+ return Result{Data: nil, Error_msg: Error_msg_1005}
|
|
|
+ }
|
|
|
+ if this.GetString("bids") == "" {
|
|
|
+ return Result{Data: nil, Error_msg: Error_msg_1003}
|
|
|
+ }
|
|
|
+ log.Println(this.GetString("bids"), "++++++++")
|
|
|
+ return Result{Data: entity.IsCollByBids(this.GetString("bids"), userId)}
|
|
|
+ }()
|
|
|
+ this.ServeJson(r)
|
|
|
+}
|
|
|
+
|
|
|
//获取标签
|
|
|
func (this *ServiceStruct) GetLabelAction() {
|
|
|
userId, _ := this.GetSession("userId").(string)
|