Esempio n. 1
0
        //POST api/Goods?token={token}&gid={gid}&b={b}
        /// <summary>获取福利卡单条类型信息</summary>
        /// <param name="token">令牌</param>
        /// <param name="gid">福利卡信息id</param>
        /// <param name="b">标识</param>
        public GoodsType PostFindPlatform(String token, Int32 gid, byte b)
        {
            if (!IsToken(token))
            {
                return new GoodsType()
                       {
                           result = -1, message = "令牌不存在"
                       }
            }
            ;

            tgm_goods_type.SetDbConnName(tgm_connection);
            var entity = tgm_goods_type.FindByid(gid);

            var goodtype = ToEntity.ToGoodsType(entity);

            goodtype.result = 1;
            return(goodtype);
        }