Beispiel #1
0
 //上传图片
 public int AddImgs([FromBody] ShopImg s)
 {
     return(bll.AddImgs(s));
 }
Beispiel #2
0
 //添加商品说明
 public int Addtext([FromBody] ShopImg s)
 {
     return(bll.Addtext(s));
 }
Beispiel #3
0
 //添加商品说明
 public int Addtext(ShopImg s)
 {
     return(dal.Addtext(s));
 }
Beispiel #4
0
 //上传图片
 public int AddImgs(ShopImg s)
 {
     return(dal.AddImgs(s));
 }
Beispiel #5
0
        //添加商品说明
        public int Addtext(ShopImg s)
        {
            string sql = $"insert into ShopImg values ('{s.Texplain}','{null}')";

            return(conn.Execute(sql));
        }
Beispiel #6
0
        //上传图片
        public int AddImgs(ShopImg s)
        {
            string sql = $"insert into ShopImg values ('{null}','{s.Timg}')";

            return(conn.Execute(sql));
        }